PHPackages                             div-art/logger - 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. div-art/logger

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

div-art/logger
==============

create log file

1.0.6(8y ago)118MITPHP

Since Jan 18Pushed 8y ago4 watchersCompare

[ Source](https://github.com/div-art/logger)[ Packagist](https://packagist.org/packages/div-art/logger)[ RSS](/packages/div-art-logger/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (6)Dependencies (1)Versions (8)Used By (0)

Logger
======

[](#logger)

Logger package for Laravel

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

[](#installation)

To install, run the following in your project directory:

```
$ composer require div-art/logger
```

If you are using laravel version &gt;= 5.5 you can skip this step:

In `config/app.php` add the following to the `providers` array:

```
\DivArt\Logger\LoggerServiceProvider::class,

```

Also in config/app.php, add the Facade class to the aliases array:

```
'Logger' => \DivArt\Logger\Facades\Logger::class,

```

Configuration
-------------

[](#configuration)

To publish Logger's configuration file, run the following `vendor:publish` command:

```
php artisan vendor:publish --provider="DivArt\Logger\LoggerServiceProvider"

```

It will create `logger.php` file in `config/logger.php`.

To manage directory for storing logs just change default value of `'path'`:

```
//the root is storage directory
'path' => 'your path',

```

By default logs lifetime is `7` days, to change it:

```
//if you set this to 0 - logs will not be deleted
'expire_days' => 7

```

Usage
-----

[](#usage)

\*\* Do not forget to include the namespace for the controller class where you plan to use this library \*\*

```
use DivArt\Logger\Facades\Logger;

```

But if you are using laravel &gt;= 5.5 you can skip this.

Example:
--------

[](#example)

```
Logger::save(array('name' => 'sani', 'year' => '30'));
```

Create logfile in default path 'storage/logger' whith name date.json

date.json:

{ 'name' =&gt; 'sani', 'year' =&gt; '30' }

Route:
------

[](#route)

```
//get all logs
Route::get('/div-art/logger/all/{date?}');
```

To manage all your logs go to this link example in browser `http://your-app.xyz/div-art/logger/all`

Methods:
--------

[](#methods)

```
Logger::save(data, 'mark');
Logger::info(data, 'mark');
Logger::danger(data, 'mark');
Logger::success(data, 'mark');

//data - data (string, number, boolean value, array, object), required parameter
//mark - string mark for filtering logs, optional parameter

Logger::request('key');
Logger::input('key');
Logger::json('key');
Logger::post('key');
Logger::get('key');
Logger::php('key');
Logger::server('key');
Logger::cookies('key');
Logger::headers('key');

//key - is an optional parameter that specifies a particular key from an array or object to be written
```

License
-------

[](#license)

The MIT License (MIT). Please see License File for more information."# Logger" "# Logger"

###  Health Score

30

—

LowBetter than 61% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~16 days

Recently: every ~23 days

Total

7

Last Release

3032d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35374748?v=4)[«Div-Art» Web Development Company](/maintainers/div-art)[@div-art](https://github.com/div-art)

---

Top Contributors

[![bisend](https://avatars.githubusercontent.com/u/25325412?v=4)](https://github.com/bisend "bisend (9 commits)")[![ITSaninho](https://avatars.githubusercontent.com/u/18385584?v=4)](https://github.com/ITSaninho "ITSaninho (5 commits)")[![IevgeniiDomanskyi](https://avatars.githubusercontent.com/u/3128768?v=4)](https://github.com/IevgeniiDomanskyi "IevgeniiDomanskyi (1 commits)")

### Embed Badge

![Health badge](/badges/div-art-logger/health.svg)

```
[![Health](https://phpackages.com/badges/div-art-logger/health.svg)](https://phpackages.com/packages/div-art-logger)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M185](/packages/spatie-laravel-health)[illuminate/log

The Illuminate Log package.

6225.7M682](/packages/illuminate-log)[spatie/laravel-flare

Send Laravel errors to Flare

131.6M8](/packages/spatie-laravel-flare)

PHPackages © 2026

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