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

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

itsaninho/logger
================

create log file

1.0.1(8y ago)010MITPHP

Since Jan 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ITSaninho/Logger)[ Packagist](https://packagist.org/packages/itsaninho/logger)[ RSS](/packages/itsaninho-logger/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Logger
======

[](#logger)

Logger package for Laravel

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

[](#installation)

To install, run the following in your project directory:

```
$ composer require itsaninho/logger
```

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

```
\Itsaninho\Logger\LoggerServiceProvider::class,

```

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

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

```

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

[](#configuration)

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

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

```

Usage
-----

[](#usage)

**Be sure to include the namespace for the class wherever you plan to use this library**

```
use Itsaninho\Logger\Facades\Logger;

```

Add from ENV file:

\#PATH\_LOG - path where been save logfile, default value 'storage/logger' PATH\_LOG=storage/logger #LOG\_SAVE - time saving your logfile, defaul value 7 days LOG\_SAVE=7

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 log
Route::get('/logger');

//get all log by date
Route::get('/logger/{date?}');

//get all log by type
Route::get('/logger/{type}');

//get all log by type and date
Route::get('/logger/{type}/{date?}');
```

Methods:
--------

[](#methods)

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

//data - data (line, number, boolean value, array, object)
//mark - text 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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Every ~0 days

Total

2

Last Release

3035d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eceb99eaf0bb935feb5400a71b93f3f7230291b9616b0da388f6aa382431830b?d=identicon)[Sasha Fedorchuk](/maintainers/Sasha%20Fedorchuk)

---

Top Contributors

[![ITSaninho](https://avatars.githubusercontent.com/u/18385584?v=4)](https://github.com/ITSaninho "ITSaninho (3 commits)")

### Embed Badge

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

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

###  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)
