Closed omurbekjk closed 5 years ago
Take a look at the examples folder here in the repo. The examples/appenders.rb
file demonstrates how to log to both stdout and a file. The examples/colorization.rb
file demonstrates adding colorization to an appender via a layout.
How to configure logger with colors and outputs, and use it in another ruby classes. Example,
logger
should log messages to theconsole
anddevelopment.log
.