idealogica/log-x

Simple PSR-3 compliant logger.

1.1.2 2019-06-23 14:59 UTC

This package is auto-updated.

Last update: 2024-03-24 02:03:21 UTC


README

Log-X it's a simple PSR-3 compliant logger with ability to duplicate log entries to stdout.

Installation

Log-X requires PHP >= 5.4

composer require idealogica/log-x:~1.1

Example

$logX = new LogX('vfs://root/test.log');
$logX->enableStdoutEcho();
$logX->alert('alert');
$logX->critical('critical');
$logX->debug('debug');
$logX->emergency('emergency');
$logX->error('error');
$logX->info('info');
$logX->notice('notice');
$logX->warning('warning');
$logX->log(LogLevel::ALERT, 'message', ['time_output' => false]);

License

Log-X is licensed under a MIT License.