---
title: "Discussion on \"Tagged logs in Rails/ActiveSupport\" | Hashnode"
description: "Discussion on \"Tagged logs in Rails/ActiveSupport\". What's tags in logs?\nIt's from Rails' ActiveSupport to prepend automatically the logs with a parameter.\nhttps://api.rubyonrails.org/classes/ActiveSupport/TaggedLogging.html\nRails.logger.tagged(\"background_job_number_1\") do\n Rails.logger.error(\"Thing ..."
url: "https://hashnode.com/posts/tagged-logs-in-railsactivesupport/65d42dec6f4b5c42d7b454dc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Tagged logs in Rails/ActiveSupport](https://blog.brennetot.com/tagged-logs-in-railsactivesupport?utm_source=hashnode&utm_medium=feed)

What's tags in logs? It's from Rails' ActiveSupport to prepend automatically the logs with a parameter. https://api.rubyonrails.org/classes/ActiveSupport/TaggedLogging.html Rails.logger.tagged("background\_job\_number\_1") do Rails.logger.error("Thing ...

Feb 20, 2024 · 1 min read · blog.brennetot.com  
Read the article

-   [#rails](https://hashnode.com/tag/rails)
-   [#logging](https://hashnode.com/tag/logging)

## Written by

[Thomas Brennetot](https://hashnode.com/@Damax)

@Damax · Tokyo, Japan

  
[View profile](https://hashnode.com/@Damax)

Rails excellence with innocence

10+ years most with Ruby on Rails and JavaScript frontend and some Go. My first language is C for 3 years in university.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
