Download the PHP package unax/logger without Composer
On this page you can find all versions of the php package unax/logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor unax
Package logger
Short Description Logger with eight methods for writing logs to the eight RFC 5424 levels (debug, info, notice, warning, error, critical, alert, emergency).
License GPL-3.0-only
Package logger
Short Description Logger with eight methods for writing logs to the eight RFC 5424 levels (debug, info, notice, warning, error, critical, alert, emergency).
License GPL-3.0-only
Please rate this library. Is it a good library?
Informations about the package logger
Unax Logger
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).
Example Usage
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.
Support
Unax Logger is supported by Unax. Comments are welcome on [email protected].
All versions of logger with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package unax/logger contains the following files
Loading the files please wait ....