PHPackages                             hyancat/light-log - 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. hyancat/light-log

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

hyancat/light-log
=================

A Light and Simple Logger for Light Applications

v0.2(10y ago)021MITPHPPHP &gt;=5.4.0

Since Mar 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/HyanCat/light-log)[ Packagist](https://packagist.org/packages/hyancat/light-log)[ RSS](/packages/hyancat-light-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

light-log
=========

[](#light-log)

A Light and Simple Logger for Light Applications.

Installation
------------

[](#installation)

```
composer require hyancat/light-log

```

Usage
-----

[](#usage)

```
// Namespace
use HyanCat\LightLog\Adapters\FileHandler as LogFileHandler;
use HyanCat\LightLog\LightLog as LLog;

// Instance
$llog = new LLog(new LogFileHandler('logs/test.log'));
$llog->app('your_app_name'); // optional

// Write log
$llog->info("it's ok!");

// Or dump an array
$anArray = ['a' => 'b', 'c' => 'd'];
$llog->debug("dump array value", $anArray);

// Or notice, warning, error...
```

Here it will write some logs into file, which looks like this: (copied from test case)

```
[your_app_name] [INFO] TestLog.php:14 - it's ok! []
[your_app_name] [DEBUG] TestLog.php:17 - dump array value {"a":"b","c":"d"}

```

LICENSE
-------

[](#license)

```
The MIT License (MIT)

Copyright (c) 2016 HyanCat

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

```

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

3712d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3190081?v=4)[流光不加少](/maintainers/HyanCat)[@HyanCat](https://github.com/HyanCat)

### Embed Badge

![Health badge](/badges/hyancat-light-log/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

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

php dev tools in your browser

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

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

41838.2M136](/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)
