PHPackages                             l-j/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. l-j/log

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

l-j/log
=======

Laravel log

1.0.0(11y ago)1241PHPPHP &gt;=5.4.0

Since Oct 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jiangqiang/laravel-channel-log)[ Packagist](https://packagist.org/packages/l-j/log)[ RSS](/packages/l-j-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

laravel-channel-log
===================

[](#laravel-channel-log)

Make it possiable to log in different channels and streams.

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

[](#installation)

Require this package in your composer.json and run composer update (or `run composer require l-j/log:dev-master` directly):

```
l-j/log:dev-master

```

Config
------

[](#config)

After updating composer, add the ServiceProvider to the providers array in app/config/app.php and remove the default log provider

```
//'Illuminate\Log\LogServiceProvider',
'LJ\Log\LogServiceProvider',

```

If you want to use the facade to log messages, add this to your facades and remove the default log facade in app.php:

```
//'Log' => 'Illuminate\Support\Facades\Log',
'Log'   => 'LJ\Log\Facades\Log',

```

Remove the `Log::useFiles(storage_path().'/logs/laravel.log')` in app/start/global/php;

If you want to overwrite the config by command:

`$ php artisan config:publish l-j/log`

then in the app/packages, you can customize the config yourself. Note: the default config and the default channel is required.

Usage
-----

[](#usage)

`Log::info($channel, $msg [, array $context]);`

There is just a default named default channel in the config, that means we can use like

`Log::info('default', $msg [, $context]);`.

If you are annoy to do this you can just ignire the `$channel` parameter, like

`Log::info($msg [, array $context])`

, the vender will automatic filling with `default` channel.

Of course, you can add your own channel by config publish and overwrite it:

```
// other channel
'api' => array(
        //streams
        'info'      => array(),
        'warning'   => array(),
        'error'     => array(),
    ),

```

the streams config options is same as the top default config like path, enable, daily, bubble, pathMode, fileMode. The code will merge them. Then the useage code will like this:

`Log::info('api', $msg [, array $context])`.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4237d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4dd21e8b43b4fdc358cc9a12494c7b015c65eead6bd28f2d5b591f87e6e0052?d=identicon)[jiangqiang](/maintainers/jiangqiang)

---

Top Contributors

[![jiangqiang](https://avatars.githubusercontent.com/u/2783769?v=4)](https://github.com/jiangqiang "jiangqiang (8 commits)")

### Embed Badge

![Health badge](/badges/l-j-log/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[beyondcode/laravel-server-timing

Add Server-Timing header information from within your Laravel apps.

5712.0M1](/packages/beyondcode-laravel-server-timing)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[label84/laravel-auth-log

Log user authentication actions in Laravel.

3654.0k](/packages/label84-laravel-auth-log)

PHPackages © 2026

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