mantle icon indicating copy to clipboard operation
mantle copied to clipboard

RFE: kola should log debug output (--debug) to a file

Open ajeddeloh opened this issue 7 years ago • 3 comments

We don't want this in the console output in jenkins (because it's obnoxious to read) but it would be nice to log it to a file instead that can be included in _kola_temp.

ajeddeloh avatar Jan 29 '18 19:01 ajeddeloh

I think we'd probably have to make it as an enhancement to capnslog if we want to keep outputting the non-debug output to stdout.

arithx avatar Jan 29 '18 19:01 arithx

Switching away from capnslog is also an option; There's been discussion in the past about migrating away https://github.com/coreos/pkg/issues/57#issuecomment-286718461

There are other libraries (like seelog) which natively have file output at various levels. It's more awkward with logrus (I think you add a Hook that handles file output?).

euank avatar Jan 29 '18 20:01 euank

Found an example of using a Hook in logrus to output to multiple locations depending on error level: https://gist.github.com/cirocosta/0ca74af1d9700aad5ec40425ef587640

arithx avatar Jan 29 '18 20:01 arithx