Skip to content
An effective,fast,stable log package for PHP.http://pecl.php.net/package/SeasLog
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
src add closeLoggerStream Sep 11, 2018
tests fix ci Sep 11, 2018
.editorconfig
.gitattributes init Apr 21, 2018
.gitignore add php-cs-fixer May 20, 2018
.php_cs add php-cs-fixer May 20, 2018
.scrutinizer.yml fix .scrutinizer.yml Jul 18, 2018
.travis.yml
CHANGELOG.md init Apr 21, 2018
LICENSE init Apr 21, 2018
README.md Update README.md Jul 18, 2018
UPGRADE.md init Apr 21, 2018
composer.json update ext-SeasLog version to 2.x Feb 15, 2019
phpunit.xml.dist init Apr 21, 2018

README.md

SeasLogger

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

You can’t perform that action at this time.