Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

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

Open
ajeddeloh opened this issue Jan 29, 2018 · 3 comments
Open

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

ajeddeloh opened this issue Jan 29, 2018 · 3 comments

Comments

@ajeddeloh
Copy link
Contributor

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.

@arithx
Copy link
Contributor

arithx commented Jan 29, 2018

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.

@euank
Copy link
Contributor

euank commented Jan 29, 2018

Switching away from capnslog is also an option; There's been discussion in the past about migrating away coreos/pkg#57 (comment)

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?).

@arithx
Copy link
Contributor

arithx commented Jan 29, 2018

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

@bgilbert bgilbert changed the title RFE: Mantle should log debug ouput (--debug) to a file RFE: Mantle should log debug output (--debug) to a file Jan 30, 2018
@bgilbert bgilbert changed the title RFE: Mantle should log debug output (--debug) to a file RFE: kola should log debug output (--debug) to a file Jan 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants