PHPackages                             diepxuan/laravel-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. diepxuan/laravel-log

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

diepxuan/laravel-log
====================

Custom Channel Log for Laravel

0.0.6(2mo ago)030.4k—0%1MITPHPCI failing

Since Jul 3Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/diepxuan/laravel-log)[ Packagist](https://packagist.org/packages/diepxuan/laravel-log)[ RSS](/packages/diepxuan-laravel-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (1)

Laravel Log
===========

[](#laravel-log)

Log custom channel cho Laravel.

Mô tả ngắn gọn
--------------

[](#mô-tả-ngắn-gọn)

Custom Channel Log for Laravel. Package cung cấp class Log để ghi log theo channel, mỗi channel lưu vào file riêng.

Chức năng chính
---------------

[](#chức-năng-chính)

- Cung cấp class `Diepxuan\Log\Log` để ghi log theo channel (mỗi channel là một file log riêng).
- Hỗ trợ tất cả các mức độ log: debug, info, notice, warning, error, critical, alert, emergency.
- Tự động tạo file log tại `storage/logs/{channel}.log`.
- Sử dụng Monolog `StreamHandler` với `LineFormatter`.
- Đăng ký singleton trong ServiceProvider, tự động đăng ký với Laravel.

Cài đặt / Sử dụng
-----------------

[](#cài-đặt--sử-dụng)

```
composer require diepxuan/laravel-log
```

Package tự động đăng ký ServiceProvider.

Sử dụng trong code:

```
use Diepxuan\Log\Log;

$log = app(Log::class);
$log->info('channel-name', 'Message log', ['context' => 'value']);
// Hoặc các phương thức khác: debug, notice, warning, error, critical, alert, emergency.
```

Cấu trúc thư mục
----------------

[](#cấu-trúc-thư-mục)

```
laravel-log/
├── config/
│   └── config.php          # Cấu hình package
├── src/
│   ├── Log.php             # Class Log chính
│   └── Providers/
│       └── ServiceProvider.php
├── .editorconfig
├── .gitignore
├── .php-cs-fixer.dist.php
├── LICENSE
├── README.md
└── composer.json

```

Liên kết đến các package liên quan
----------------------------------

[](#liên-kết-đến-các-package-liên-quan)

- monolog/monolog (dependency ngầm của Laravel)

Ghi chú
-------

[](#ghi-chú)

Package hữu ích khi muốn phân tách log thành nhiều file theo từng channel (ví dụ: log riêng cho từng module).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance83

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

###  Release Activity

Cadence

Every ~200 days

Total

4

Last Release

85d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90fcb59bfa8097c0e0dacd05f43901adb774dc4adb6172b2b743635f8f3d1d2e?d=identicon)[caothu159](/maintainers/caothu159)

---

Top Contributors

[![caothu159](https://avatars.githubusercontent.com/u/4988663?v=4)](https://github.com/caothu159 "caothu159 (9 commits)")

### Embed Badge

![Health badge](/badges/diepxuan-laravel-log/health.svg)

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

###  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)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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