opxcore / log-file
The OpxCore file logger.
1.0.3
2021-02-04 16:19 UTC
Requires
- php: ^7.4
- opxcore/log-interface: ^1.0.9
Requires (Dev)
- phpunit/phpunit: ^9.5.0
This package is auto-updated.
Last update: 2024-10-12 00:23:50 UTC
README
Introduction
File logger is a PSR-3 compatible logger what records log messages to local files. It can be used as standalone logger or with log manager.
Installing
composer require opxcore/log-file
Using
All you need is create logger instance and specify a name of file to lag to be written. Then log your messages.
$logger = new \OpxCore\Log\LogFile('/file/name'); $logger->info('Hello world!');
File logger extends AbstractLogger
. See log-interface