TwP / logging

A flexible logging library for use in Ruby programs based on the design of Java's log4j library.
https://rubygems.org/gems/logging
MIT License
530 stars 101 forks source link

How to turn off colored output? #175

Closed ghostsquad closed 4 years ago

ghostsquad commented 6 years ago

How does one turn off colored output? I don't see it in the documentation. It seems if you are using the console logger, and don't specify a color scheme, it sets a default one. Thanks!

ufo2mstar commented 6 years ago

Hey @ghostsquad , By default, logging does not apply colors to your log message texts. When initializing your layout for your appender, either:

  1. omit your color_scheme parameter or
  2. just set color_scheme: nil,.. and this should prevent the log message colorization

Cheers!