claretnnamocha / php-logger
A simple PHP logger used to ouput data to server terminal
1.0.1
2020-12-05 09:41 UTC
Requires
- php: >=5.3.4
This package is auto-updated.
Last update: 2024-10-05 18:08:08 UTC
README
A simple PHP logger used to ouput data to server terminal inspired by the console module in javascript
Features
- Colored output depending on the type of output (debug= default color, info= lightgreen foreground and lightgray background)
- Highlighting reserved return values eg(true, false and null) with the color blue
Examples
Debug
use Alpha\Console\Console; Console::log('Hello World!');
Output
Info
use Alpha\Console\Console; Console::info('Some informative message!');
Output
Error
use Alpha\Console\Console; Console::error(new Exception());