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
Post a Comment