Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Changing host]
awkisopen has joined #cinch
<awkisopen>
is there a way to get cinch to log only errors to stderr
<dominikh>
awkisopen: yes
<dominikh>
@bot.loggers.level = :error, if I remember correctly
<awkisopen>
can I also get those non-errors logged to stdout?
<dominikh>
you want to separate normal logging and errors?
<awkisopen>
basically yup
<dominikh>
well, the logger is level-based, so lower levels include higher levels. you can have errors on stderr, but if you want normal on stdout, it would also include the errors
<awkisopen>
eh, I can deal with that for my use case
<dominikh>
well, unless you subclass the logger and overwrite the error logging
<dominikh>
well, going with the easy approach: @bot.loggers.clear; @bot.loggers << Cinch::Logger::FormattedLogger.new($stderr); @bot.loggers[0].level = :error; @bot.loggers << Cinch::Logger::FormattedLogger.new($stdout);
<dominikh>
untested, but something along those lines
<awkisopen>
yeah I get the idea. thanks!
<dominikh>
:)
dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.9
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Changing host]
jonahR has quit [Quit: jonahR]
Spami has quit [Quit: This computer has gone to sleep]