Skip to content

idealogica/log-x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log-X

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.

About

Simple PSR-3 compliant logger

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages