Using logfmt and Pretty Logger Formats in Custom File Logging
It would be super useful if I could just use the logfmt/pretty logger formatting without having to reimplement their entire contents in my own custom logger (I need to write to a file). I suppose I could also do this though by just overriding the
Console tag. Its confusing though because logfmtLogger doesn't write to the console on its own—it returns a string. On the other hand, the pretty logger doesn't return anything and writes to the console.