terah / colourlog
A colourful PSR3 Logger
6.0.0.9
2021-01-18 10:31 UTC
Requires
- php: >=7.4
- psr/log: ~1.0
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
This package is auto-updated.
Last update: 2026-06-19 00:39:26 UTC
README
A simple PSR3 compliant logger with basic colours.
Install
Via Composer
$ composer require terah/colourlog
Usage
$use_file_locking = false;
$gzip_log = false;
$logger = new \Terah\ColourLog\Logger('/path/to/log', \Psr\Log\LogLevel::INFO, $use_file_locking, $gzip_log);
$logger->error("Testing logger");
Testing
$ phpunit
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email terry@terah.com.au instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.