opxcore / log-null
The OpxCore null logger.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/opxcore/log-null
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!');