PHPackages                             santran/smartlogs - 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. santran/smartlogs

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

santran/smartlogs
=================

Create Smart Logs for Laravel 5 Web or API application.

1.0(9y ago)027MITPHPPHP &gt;=5.5.9

Since Nov 18Pushed 8y agoCompare

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

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

Laravel 5 SmartLogs
===================

[](#laravel-5-smartlogs)

[![Total Downloads](https://camo.githubusercontent.com/34dda03f46066d89b46fe11a7f3c13e6830c0faed4ee1efd9e408f6d89505c11/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616e7472616e2f736d6172746c6f67732e737667)](https://packagist.org/packages/santran/smartlogs)[![Paypal Donate](https://camo.githubusercontent.com/7b6de155df30b37b25eb5fec52f9213680c3dbf067dfb7d7e2850ac4096c7d05/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e6174655f534d2e676966)](http://paypal.me/MrSanTran)

Log look like [![preview](https://cloud.githubusercontent.com/assets/21286108/20433981/78479a96-add8-11e6-82c2-64bdc96fbc9b.png)](https://cloud.githubusercontent.com/assets/21286108/20433981/78479a96-add8-11e6-82c2-64bdc96fbc9b.png)

---

The best Log for Laravel 5.2.x and above. **Install with composer**.

Install (Laravel)
-----------------

[](#install-laravel)

Install via composer

```
composer require santran/smartlogs:dev-master

```

Add Service Provider to `config/app.php` in `providers` section

```
SanTran\SmartLogs\SmartLogsServiceProvider::class,
```

Add Facade to `config/app.php` in `aliases` section:

```
'SmartLogs' => SanTran\SmartLogs\SmartLogsFacade::class,
```

Publish config file, open console and enter bellow command:

```
php artisan vendor:publish
```

Config file 'smartlogs.php' will be copy to config/smartlogs.php, you can change any config on that file for SmartLogs

```
- 'log_path'                          : Path to save file log
- 'log'                               : Log daily or single file
- 'log_option_on'                     : Enable/Disable Option Log
- 'log_level_enable'                  : Level of logs (Have four Level 'DEBUG', 'INFO', 'WARNING', 'ERROR')
- 'log_file_name'                     : Name of file log
- 'log_condition' => true,            : Enable Log by user id or client IP
- 'list_user_id' => [1, 2]            : List user id accept to write log
- 'list_ip' => ['127.0.0.1', '::1']   : List IP accept to write log
- 'log_reverse' => false,             : Reverse condition write lo by user id and client ip
```

How to use ? Open your Controller or any where you want to write log. Add this line on above file, remember after 'namespace ...' keywork:

```
use SmartLogs;
```

Call to write log on your function:

```
SmartLogs::startLog($params)  : To write START log ($params is optional - Default is "START")

SmartLogs::finishLog($params)  : To write FINISH log ($params is optional - Default is "FINISH")

SmartLogs::appInfo($params)  : To write Information log ($params can be String or Array)

SmartLogs::appDebug($params)  : To write Debug log ($params can be String or Array)

SmartLogs::appWarning($params)  : To write Warning log ($params can be String or Array)

SmartLogs::appError($params)  : To write Error log ($params can be String or Array)

SmartLogs::optLog($params)  : To write Option log ($params can be String or Array)

SmartLogs::logRequest()     : To write Option log with all Request params
```

Features:

- Update auto log lastest sql command
- And more...

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

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

3463d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05fcc8d2c99d7c53346781ea21d01e043ed1cd1597675f83e2be8bb3fa868836?d=identicon)[santran](/maintainers/santran)

---

Top Contributors

[![mrsantran](https://avatars.githubusercontent.com/u/21286108?v=4)](https://github.com/mrsantran "mrsantran (32 commits)")

### Embed Badge

![Health badge](/badges/santran-smartlogs/health.svg)

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

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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