5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Hubotのログレベルを指定する

Posted at

ここにある通り、 HUBOT_LOG_LEVEL という環境変数を認識する。デフォルトでは info なので、だいぶ細かく出てしまって不便。ことhubot-ircだとinfoではチャンネルのすべての発言がログに出てしまうのでサイズも...。

Heroku で運用していれば

$ heroku config:set HUBOT_LOG_LEVEL=notice

でセットできて便利やね〜

あと、ログレベルの表記はsyslog準拠らしい。

log4jやRubyのLoggerの感覚で config:set HUBOT_LOG_LEVEL=warn とやってしまうと認識してくれない。注意。

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?