PHPackages                             peiit/jplogger - 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. peiit/jplogger

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

peiit/jplogger
==============

Customer logger for Laravel/Lumen

1.0.0(9y ago)029MITPHP

Since Oct 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/peiit/jplogger)[ Packagist](https://packagist.org/packages/peiit/jplogger)[ RSS](/packages/peiit-jplogger/feed)WikiDiscussions master Synced 2mo ago

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

JPLogger
========

[](#jplogger)

This is a customer logger base of [monolog](https://github.com/Seldaek/monolog) for Laravel/Lumen 5.0+,it can save the log to different files. 这是一个基于[monolog](https://github.com/Seldaek/monolog)适用于Laravel/Lumen 5.0及以上版本的个性化日志输出拓展，可以将日志安装需求输出到同的日志文件里。

Install 安装
----------

[](#install-安装)

```
  composer require peiit/jplogger
```

Configuration 配置
----------------

[](#configuration-配置)

### In Laravel

[](#in-laravel)

1. register `ServiceProvider` in `config/app.php` :

```
Peiit\JPLogger\JPLoggerServiceProvider::class,
```

### In Lumen

[](#in-lumen)

1. register `ServiceProvider` in `bootstrap/app.php` :

```
$app->register(Peiit\JPLogger\JPLoggerServiceProvider::class);
```

Use 使用
------

[](#use-使用)

```
//Example
$log_name = 'jp_test';//log file name
$j_log = app('JPLogger')->logger($log_name);//Create a logger

$j_log->info('do something****' . microtime(true),['param1','param2']);//log a info
$j_log->error('some err****' . microtime(true));//log a error
```

It use as laravel's logger in the same way. 本拓展和Laravel/Lumen使用的日志器使用方法一样。

Result 结果
---------

[](#result-结果)

You can find the `storage/logs/jp_test.log` is the customer log. 你可以看到自己的定制日志 `storage/logs/jp_test.log`.

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3500d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c117bb93ec7f6bae52baa3a4b71f7357baa6d1ea1d7a953774158bbd92dd98a?d=identicon)[peiit](/maintainers/peiit)

---

Top Contributors

[![peiit](https://avatars.githubusercontent.com/u/17550211?v=4)](https://github.com/peiit "peiit (1 commits)")

---

Tags

loglaravellumenlogger

### Embed Badge

![Health badge](/badges/peiit-jplogger/health.svg)

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

###  Alternatives

[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[codeinternetapplications/monolog-stackdriver

Stackdriver handler for Monolog.

14181.7k](/packages/codeinternetapplications-monolog-stackdriver)[yzen.dev/mono-processor

This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.

116.1k](/packages/yzendev-mono-processor)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.5k1](/packages/melihovv-laravel-log-viewer)

PHPackages © 2026

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