Skip to content

benrolfe/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logger

A simple PSR-3 compliant logging class for PHP.

use Unit6\Log\Logger;

$path = __DIR__ . '/logs';
$logger = new Logger($path);
$logger->info('Test info message.');
$logger->debug('Test debug message.');

Available Levels

use Psr\Log\LogLevel;

// These are in order of highest to lowest priority.
LogLevel::EMERGENCY;
LogLevel::ALERT;
LogLevel::CRITICAL;
LogLevel::ERROR;
LogLevel::WARNING;
LogLevel::NOTICE;
LogLevel::INFO;
LogLevel::DEBUG;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages