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

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

artim/logger
============

Logger in file for laravel

0.2.4(3y ago)0441MITPHPPHP ^8.1

Since Feb 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/artim-ctrl/logger)[ Packagist](https://packagist.org/packages/artim/logger)[ RSS](/packages/artim-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (13)Versions (7)Used By (0)

Artim Logger
============

[](#artim-logger)

How to start
------------

[](#how-to-start)

At first we need install package:

```
composer require artim/logger
```

Add LARAVEL\_START const to artisan file in root directory:

```
define('LARAVEL_START', microtime(true));
```

This is necessary to fix the start time of request processing.

Then we need append ArtimLoggerServiceProvider.php to app.php config. Here you can see the effect of configuration settings on the information that will be logged.

```
class ArtimLoggerServiceProvider extends ServiceProvider
{
    public function boot(): void
    {
        $this->publishes([
            __DIR__ . '/../config/artim-logger.php' => config_path('artim-logger.php'),
        ], 'config');
    }

    public function register(): void
    {
        $this->app->make(LogRegistrator::class)->set();
        $this->app->make(HttpRegistrator::class)->set();

        if (config('artim-logger.logs.application')) {
            $this->app->make(AppLogRegistrator::class)->set();
        }

        if (config('artim-logger.logs.db')) {
            $this->app->make(DBLogRegistrator::class)->set();
        }

        $this->mergeConfigFrom(__DIR__ . '/../config/artim-logger.php', 'artim-logger');
    }
}
```

```
class AppLogRegistrator extends AbstractRegistrator
{
    public function set(): void
    {
        $this->app->terminating(function () {
            $data = [
                'type' => 'application',
                'startedAt' => LARAVEL_START,
                'endedAt' => microtime(true),
                'peakMemoryUsage' => get_formatted_peak_memory_usage(),
            ];

            if (config('artim-logger.logs.request')) {
                $data['request'] = request();
            }

            \Log::info('App terminating', $data);
        });
    }
}
```

Then we need add Http facade to list of aliases in app.php:

```
'Http' => \Artim\Logger\Http\Http::class,
```

Now you can append configuration for logger in logging.php:

```
'artim' => [
    'driver' => 'monolog',
    'level' => env('LOG_LEVEL', 'debug'),
    'handler' => \Monolog\Handler\RotatingFileHandler::class,
    'formatter' => \Artim\Logger\Logger\File\JsonFormatter::class,
    'handler_with' => [
        'filename' => storage_path('logs/laravel-artim.log'),
    ],
],
```

It will write logs to storage/logs/laravel-test.log file:

```
\Log::info('Some log message', ['property' => 'some value of the property']);
```

```
{
  "message": "Some log message",
  "context": {
    "property": "some value of the property",
    "user": null,
    "token": "cd3856c0bc1abae60ebd8f1df9d0ebb8"
  },
  "level": 200,
  "level_name": "INFO",
  "channel": "local",
  "datetime": "2023-03-18T18:58:13.262363+00:00",
  "extra": {}
}
```

If you want to track the action of your application inside the queues, you can use the class Artim\\Logger\\Job

```
namespace Artim\Logger\Job;

use Illuminate\Contracts\Queue\ShouldQueue;

abstract class Job implements ShouldQueue
{
    use LogToken;

    protected string $logToken;
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Total

6

Last Release

1098d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35c876c13341f4706941a06720791182e5624cd5b9c815cd2c8a7b091f8690d7?d=identicon)[artim-ctrl](/maintainers/artim-ctrl)

---

Top Contributors

[![artim-ctrl](https://avatars.githubusercontent.com/u/61979362?v=4)](https://github.com/artim-ctrl "artim-ctrl (2 commits)")[![Khazhinov](https://avatars.githubusercontent.com/u/15653986?v=4)](https://github.com/Khazhinov "Khazhinov (1 commits)")

---

Tags

laravellogger

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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