Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
post-it
2mo ago
0 comments
Share
Multiple levels of logging, all of which you want to capture but not all in the same place.
0 comments
default
newest
oldest
skydhash
2mo ago
Wasn't the idiomatic way the `-v` flag (repeated for verbosity). And then stderr for errors (maybe warning too).
notpushkin
2mo ago
It is, and all logs should ideally go to stderr. But that doesn’t let you pipe them to different places.
post-it
OP
2mo ago
Yes, but sometimes you want just important non-error logs to go to the console or journal, and then those plus verbose logs to go to a file that gets rotated, and then also stderr on top of that.
j
/
k
navigate · click thread line to collapse