semihsemih / logie
PHP library for logging
dev-main
2023-01-02 19:32 UTC
Requires
- php: >=8.2
- aws/aws-sdk-php: ^3.255
- psr/log: ^3.0
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-04-30 00:56:37 UTC
README
This library implements the PSR-3 interface that you can type-hint against in your own libraries to keep a maximum of interoperability.
Installation
Install the latest version with
composer require semihsemih/logie
Usage
$handler = new Logie\Handler\FileHandler($logFileName);
$logger = new Logie\Logger($handler);
$logger->log(LogLevel::INFO, 'an info has occurred.');