You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works. But I would like to see colors in the log file but not in stderr, because I sometimes want to pipe that into grep, sed, etc. But the nocolors property can't be specified on a per-destination basis.
This doesn't work: chronicles_sinks=textlines[file(dancing_links.log),dynamic(nocolors)]
This does work, but now neither destination gets colors. chronicles_sinks=textlines[nocolors,file(dancing_links.log),dynamic]
Is there a way to specify this at compile time, or to strip out the colors in the dynamic writer?
The text was updated successfully, but these errors were encountered:
In my application I send log messages to a file. Messages are optionally sent to stderr based on a command line argument.
Compile-time config:
chronicles_sinks=textlines[file(dancing_links.log),dynamic]
Runtime:
This works. But I would like to see colors in the log file but not in stderr, because I sometimes want to pipe that into grep, sed, etc. But the nocolors property can't be specified on a per-destination basis.
This doesn't work:
chronicles_sinks=textlines[file(dancing_links.log),dynamic(nocolors)]
This does work, but now neither destination gets colors.
chronicles_sinks=textlines[nocolors,file(dancing_links.log),dynamic]
Is there a way to specify this at compile time, or to strip out the colors in the dynamic writer?
The text was updated successfully, but these errors were encountered: