emabee/flexi_logger

Allow different log levels for file and stderr logging

gibfahn opened this issue · 1 comments

Apologies if this exists and I didn't find it.

I'd like to have the user specify the log level to stderr, but to always log at TRACE level to a log file. I couldn't find a way to enable this in the docs.

emabee commented

Sorry for the late reply, somehow I missed this one.

Use a fixed LogSpecification "trace", and let the user decide which Duplicate variant to use in Logger::duplicate_to_stderr.