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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -