rocketphp/logger

Log to file - PSR Log interface

1.0.0 2015-09-01 18:43 UTC

This package is not auto-updated.

Last update: 2024-11-13 10:41:58 UTC


README

Build Status Coverage Status Dependency Status

Latest Stable Version License

RocketPHP\Logger uses the PSR Log interface to log data to a static file.

To log data – use the emergency, alert, critical, error, warning, notice, info and debug methods.

use RocketPHP\Logger as Logger;

$logger = new Logger(
                     'log', 
                     Logger::CRITICAL
          );
$logger->emergency('Logged');
$logger->warning('NOT logged');