seasx/seas-logger

An effective,fast,stable log package for PHP

2.0.1 2019-02-15 02:52 UTC

This package is auto-updated.

Last update: 2024-11-12 21:40:37 UTC


README

An effective,fast,stable log package for PHP base SeasLog

Build Status Scrutinizer Code Quality Code Coverage Code Intelligence Status Latest Stable Version Total Downloads License

This library implements the PSR-3 and PSR-4

Installation

Install the latest version with

$ composer require seasx/seas-logger

Basic Usage

<?php

use Seasx\SeasLogger\Logger;

$logger = new Logger();

// add records to the log
$logger->warning('Hello');
$logger->error('SeasLogger');

configuration for laravel/lumen >=5.6

add seaslog configuration in config/logging.php

'channels' => [
    ...
    'seaslog' => [
        'driver' => 'custom',
        'via' => \Seasx\SeasLogger\Logger::class,
        'path' => '/path/to/logfile',
    ],
    ...
]

edit .env file to use seaslog

LOG_CHANNEL=seaslog

See more

https://github.com/SeasX/SeasLog