0
0

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 3 years have passed since last update.

孤独アドベントカレンダーに挑戦Advent Calendar 2019

Day 21

railsのログにタグ付けをしてログ種別を識別する

Last updated at Posted at 2019-12-20

railsのログにタグ付けをしてログ種別を識別する

logger.taggedを使用する事で、ログにタグを付ける事が可能です。
例えば、サブドメインやリクエストIDなどを指定してデバックに役立てます。

$ logger.tagged("BCX", "Jason") { logger.info "Stuff" }
#=> [BCX] [Jason] Stuff
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?