logging - Does the standard ruby logger have an "ignore" input? -


i'm trying write spec test no info stdout - not stderr.

is possible instantiate logger ioobject throws away data passed in circumstances, without monkeypatching logger?

if so, common practice or should use stderr?

regards,

you create logger null device:

logger = logger.new(io::null) 

or set high logging severity threshold:

logger.level = logger::error 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -