DefaultLogger class is available for logging. The DefaultLogger includes eight methods for writing logs to the eight RFC 5424 levels (debug, info, notice, warning, error, critical, alert, emergency).
require(__DIR__ . '/vendor/autoload.php');
\Unax\Logger\LogHandlerFile::setLogHandlerFile(__DIR__ . '/debug.log');
\Unax\Logger\Logger::setLogThreshold('info');
$logger = \Unax\Logger\Logger::getLogger();
$logger->info('Hello World!');
Default log destination is PHP error_log() destination. Default logging threshold is 'error'. Everything below treshold will be skipped.
Unax Logger is supported by Unax. Comments are welcome on support@unax.org.