PHPackages                             spir/filelogreader - 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. spir/filelogreader

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

spir/filelogreader
==================

Daily file based log reader

031PHP

Since Jan 15Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Spir/FileLogReader)[ Packagist](https://packagist.org/packages/spir/filelogreader)[ RSS](/packages/spir-filelogreader/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

FileLogReader
=============

[](#filelogreader)

Psr 3 daily file log reader

[![Build Status](https://camo.githubusercontent.com/c3a36ed85376a908c39c864ee94c6d711a16ffee5e0da06f295d525836962e69/68747470733a2f2f7472617669732d63692e6f72672f537069722f46696c654c6f675265616465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Spir/FileLogReader)

This lib assume that your log are similar to this format:

```
	[YYYY-MM-DD HH:MM:SS] ENVIRONMENT.LEVEL: DESCRIPTION
	STACK

```

Quick example
-------------

[](#quick-example)

```
$fileLogReader = new FileLogReader('/path/to/your/logs');
$sapi = php_sapi_name();
$date = new DateTime();

$logFiles = $fileLogReader->getAll($sapi);
var_dump($logFiles);

$todayLogs = $fileLogReader->getFile($sapi, $date);
var_dump($todayLogs);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/36505e9605eb7479afd3e683a2728eaa3647e04ac466de21d800d0047eed566c?d=identicon)[Spir](/maintainers/Spir)

---

Top Contributors

[![Spir](https://avatars.githubusercontent.com/u/213191?v=4)](https://github.com/Spir "Spir (2 commits)")

### Embed Badge

![Health badge](/badges/spir-filelogreader/health.svg)

```
[![Health](https://phpackages.com/badges/spir-filelogreader/health.svg)](https://phpackages.com/packages/spir-filelogreader)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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