PHPackages                             smart-contact/smart-log-client - 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. smart-contact/smart-log-client

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

smart-contact/smart-log-client
==============================

Client for send log to Smart Log Application

v1.0.14(4y ago)01.1kMITPHP

Since Jan 15Pushed 4y agoCompare

[ Source](https://github.com/smart-contact/smart-log-client)[ Packagist](https://packagist.org/packages/smart-contact/smart-log-client)[ Docs](https://github.com/smart-contact/smart-log-client)[ RSS](/packages/smart-contact-smart-log-client/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (14)Used By (0)

SmartLogClient
==============

[](#smartlogclient)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ece69ef96c104228348a043ee1d4955c888e23b75fb2b7043b39186abf1bbd18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736d6172742d636f6e746163742f736d6172742d6c6f672d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smart-contact/smart-log-client)[![Total Downloads](https://camo.githubusercontent.com/257d83eec0dfe2e9ff6eb03bcb32a1ac02371f9f6572c344ac69e61703eb00aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736d6172742d636f6e746163742f736d6172742d6c6f672d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smart-contact/smart-log-client)[![License](https://camo.githubusercontent.com/4abb29cf9b1694c18d847aa6ae086e5fb07a0ef703427da1c1b94b348e592611/68747470733a2f2f706f7365722e707567782e6f72672f736d6172742d636f6e746163742f736d6172742d6c6f672d636c69656e742f6c6963656e7365)](//packagist.org/packages/smart-contact/smart-log-client)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

Via Composer

```
$ composer require smart-contact/smart-log-client
```

To publish the config, run the vendor publish command:

```
php artisan vendor:publish --provider="SmartLogClient\SmartLogClientServiceProvider"
```

Usage
-----

[](#usage)

```
SmartLogClient::report([
    'level' => 'info', //required
    'level_code' => '', //required
    'status_code' => '',
    'user' => 'John Doe', //required
    'description' => 'New Log Line', //required
    'ip' => 'IP ADDRESS', //required
    'registered_at' => 'Y-m-d H:i:s', //default now()
    'log' => [
        'key' => 'value',
    ],
    'extra' => [
        'key' => 'value',
    ],
    'formatted' => '',
    'user_agent' => 'USER AGENT', //default Jenssegers\Agent::getUserAgent,
    'browser' => 'BROWSER', //default Jenssegers\Agent::browser
    'browser_version' => 'BROWSER VERSION', //default Jenssegers\Agent::version
    'platform' => 'PLATFORM', //default Jenssegers\Agent::plaform
    'platform_version' => 'PLATFORM VERSION', //default null
]);
```

```
SmartLogClient::info([
    'status_code' => '',
    'user' => 'John Doe', //required
    'description' => 'New Log Line', //required
    'ip' => 'IP ADDRESS', //required
    'registered_at' => 'Y-m-d H:i:s', //default now()
    'log' => [
        'key' => 'value',
    ],
    'extra' => [
        'key' => 'value',
    ],
    'formatted' => '',
    'user_agent' => 'USER AGENT', //default Jenssegers\Agent::getUserAgent,
    'browser' => 'BROWSER', //default Jenssegers\Agent::browser
    'browser_version' => 'BROWSER VERSION', //default Jenssegers\Agent::version
    'platform' => 'PLATFORM', //default Jenssegers\Agent::plaform
    'platform_version' => 'PLATFORM VERSION', //default null
]);
```

### Available Log Level

[](#available-log-level)

```
SmartLogClient::emergency($data);
SmartLogClient::critical($data);
SmartLogClient::error($data);
SmartLogClient::warning($data);
SmartLogClient::notice($data);
SmartLogClient::info($data);
SmartLogClient::debug($data);
```

### Laravel Custom Logging Channel

[](#laravel-custom-logging-channel)

Apply these changes to the file config/logging.php

```
'stack' => [
    'driver' => 'stack',
    'channels' => ['smartlog','single'],
    'ignore_exceptions' => false,
],

//Custom Channel
'smartlog' => [
    'driver' => 'custom',
    'handler' => \SmartContact\SmartLogClient\Logging\SmartLogHandler::class,
    'via' => \SmartContact\SmartLogClient\Logging\SmartLogLogger::class
],
```

### Use SmartLog Exceptions Handler

[](#use-smartlog-exceptions-handler)

Apply these changes to the file app/Exceptions/Handler.php

```
namespace App\Exceptions;

class Handler extends \SmartContact\SmartLogClient\Exceptions\Handler
{

}
```

### Track Model's event

[](#track-models-event)

Include the Trait `SmartContact\SmartLogClient\Traits\TrackingApplicationLogs` in the Model that you want to trace

```
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use SmartContact\SmartLogClient\Traits\TrackingApplicationLogs;

class Order extends Model
{
    use HasFactory, TrackingApplicationLogs;

    //Default
    public static $recordEvents = [
        'retrieved',
        'created',
        'updated',
        'deleted',
        'restored' // if the model include SoftDeletes trait
    ];
}
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Matteo Meloni](https://github.com/smart-contact)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

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 ~49 days

Recently: every ~34 days

Total

11

Last Release

1812d ago

### Community

Maintainers

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

---

Top Contributors

[![sc-matteomeloni](https://avatars.githubusercontent.com/u/59726117?v=4)](https://github.com/sc-matteomeloni "sc-matteomeloni (17 commits)")

---

Tags

laravelSmartLogClient

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/smart-contact-smart-log-client/health.svg)

```
[![Health](https://phpackages.com/badges/smart-contact-smart-log-client/health.svg)](https://phpackages.com/packages/smart-contact-smart-log-client)
```

###  Alternatives

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[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)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

6392.1k](/packages/masterro-laravel-mail-viewer)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)

PHPackages © 2026

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