mibadger / log
This package is abandoned and no longer maintained.
No replacement package was suggested.
The Log Component
v3.0.0
2021-08-12 11:45 UTC
Requires
- php: ^7.3 || ^8.0
- mibadger/file: ^4.0
- mibadger/observer: ^3.0
- psr/log: ^1.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^9.5
Provides
This package is auto-updated.
Last update: 2022-11-19 17:10:23 UTC
README
The Log Component.
PSR-3
This package implements the PSR-3 logger interfaces so you can easily swap this package with other PSR-3 compatible package. Check the official PHP Framework Interop Group website for information about the PSR recommendations.
Example
<?php use miBadger\Log\Logger; use miBadger\Log\LogHandler; /** * Create a new logger. */ $logger = new Logger(); /** * Create a new log handler. */ $logHandler = new LogHandler(); /** * Attach a log handler. */ $logger->attach($logHandler); /** * Log an informational message. */ $logger->info('message');