PHPackages                             opxcore/log-file - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. opxcore/log-file

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

opxcore/log-file
================

The OpxCore file logger.

1.0.3(5y ago)19MITPHPPHP ^7.4CI failing

Since Feb 11Pushed 5y agoCompare

[ Source](https://github.com/opxcore/log-file)[ Packagist](https://packagist.org/packages/opxcore/log-file)[ Docs](https://opxcore.com)[ RSS](/packages/opxcore-log-file/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Logging to local file
=====================

[](#logging-to-local-file)

[![Build Status](https://camo.githubusercontent.com/59915618474663ee4546289f22149cbdeedbcd216097afceac6ee23a664051f3/68747470733a2f2f7777772e7472617669732d63692e636f6d2f6f7078636f72652f6c6f672d66696c652e7376673f6272616e63683d6d6173746572)](https://www.travis-ci.com/opxcore/log-file)[![Coverage Status](https://camo.githubusercontent.com/e0043601364900eb437faf1ab49f8bdde725c3d4ce3325710ec397c1afe8eab1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f7078636f72652f6c6f672d66696c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/opxcore/log-file?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/03e8ec180c3ae9497e87030471ee29e2542a1258ac8262541513f4b40921818f/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f6c6f672d66696c652f762f737461626c65)](https://packagist.org/packages/opxcore/log-file)[![Total Downloads](https://camo.githubusercontent.com/b594d4f7ce1563511ca6073e801c3e5272459fde4141b5e7436af4b426eb9124/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f6c6f672d66696c652f646f776e6c6f616473)](https://packagist.org/packages/opxcore/log-file)[![License](https://camo.githubusercontent.com/877075c2df8c4d8987f2ca0782321fccfa98a5fcbe84398a3f04d6269fba87fb/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f6c6f672d66696c652f6c6963656e7365)](https://packagist.org/packages/opxcore/log-file)

Introduction
============

[](#introduction)

File logger is a PSR-3 compatible logger what records log messages to local files. It can be used as standalone logger or with [log manager](https://github.com/opxcore/log-manager).

Installing
==========

[](#installing)

`composer require opxcore/log-file`

Using
=====

[](#using)

All you need is create logger instance and specify a name of file to lag to be written. Then log your messages.

```
$logger = new \OpxCore\Log\LogFile('/file/name');
$logger->info('Hello world!');
```

File logger extends `AbstractLogger`. See [log-interface](https://github.com/opxcore/log-interface#abstractlogger)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~241 days

Total

4

Last Release

1926d ago

PHP version history (2 changes)1.0.0PHP ^7.1.3

1.0.2PHP ^7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46634185?v=4)[opxcore](/maintainers/opxcore)[@opxcore](https://github.com/opxcore)

---

Top Contributors

[![lozovoyv](https://avatars.githubusercontent.com/u/21274927?v=4)](https://github.com/lozovoyv "lozovoyv (13 commits)")[![opxcore](https://avatars.githubusercontent.com/u/46634185?v=4)](https://github.com/opxcore "opxcore (1 commits)")

---

Tags

logopxcore

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/opxcore-log-file/health.svg)

```
[![Health](https://phpackages.com/badges/opxcore-log-file/health.svg)](https://phpackages.com/packages/opxcore-log-file)
```

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
