JAXLLogger
provides all the logging facilities that we will ever require.
When logging to STDOUT
it also colorizes the log message depending upon
its severity level. When logging to a file it can also do periodic log
rotation.
- ERROR (red)
- WARNING (blue)
- NOTICE (yellow)
- INFO (green)
- DEBUG (white)
Following global methods for logging are available:
error($msg)
warning($msg)
notice($msg)
info($msg)
debug($msg)
All the above global logging methods internally use log($msg, $verbosity)
to output colored log message on the terminal.