opxcore / log-null
The OpxCore null logger.
1.0.0
2020-12-24 12:52 UTC
Requires
- php: ^7.4
- opxcore/log-interface: ^1.0.3
README
Introduction
Null logger is a PSR-3 compatible logger what can be used as implementation of LoggerInterface but does nothing.
Installing
composer require opxcore/log-null
Using
All you need is create logger instance and log your messages.
$logger = new \OpxCore\Log\LogNull(); // That does nothing $logger->info('Hello world!');