Ability handle loggers of kayabot
Smarre opened this issue · 1 comments
At the moment kayabot just throws everything to stderr (or stdout). When there happens something unexpected, it might produces something interesting.
But if there is tons of status updates and you haven’t redirected everything to file for post processing (not fun if it generates much output), those status updates will consume whole buffer of terminal, making it impossible to see an error that has happened, like, a week ago or so.
My suggestion for the problem: make it possible to log out errors differently. For example, allow redirection of debug messages to separate file and other errors to another. Or even allow redirection of debug messages to a file (/dev/null for people that aren’t interested :P) and throw everything else (unexpected) to console, so person maintaining the bot can look at the bot if it has done something funny.
Done on 1.8.
You can use kayabot my_yaml 1>out 2>errors