php pagekit install nativerank/pagekit-logger // Activate after installing in the System
// Log a simple String
$logger = App::getPagekitLogger();
$logger->log('Hello log!');
// Log an exception
$logger->log($e);
// Name
$logger = new PagekitLogger(['name' => 'MyLogger']); // Change Logger name
// Log Level
$logger->log('Hello log!', PagekitLogger::INFO); // Log level INFO
// Exceptions:
$logger->log($e, PagekitLogger::CRITICAL); // Custom Error Level
Name: PagekitLogger
Log Level: ERROR
- DEBUG
- INFO
- NOTICE
- WARNING
- ERROR
- CRITICAL
- ALERT
- EMERGENCY
MIT