---
title: "Use uuid, X-Request-Id and tagged logging"
description: "Episode 7 of Ruby on Rails, by Neeraj Singh."
canonical_url: "https://www.bigbinary.com/videos/learn-ruby-on-rails/use-uuid-x-request-id-and-tagged-logging"
markdown_url: "https://www.bigbinary.com/videos/learn-ruby-on-rails/use-uuid-x-request-id-and-tagged-logging.md"
---

# Use uuid, X-Request-Id and tagged logging

Episode 7 of Ruby on Rails, by Neeraj Singh.

## Details

- Series: Ruby on Rails Videos
- Duration: 07:51
- Published: February 5, 2016
- [Watch on YouTube: https://www.youtube.com/watch?v=SgOqdwPs6Yg](https://www.youtube.com/watch?v=SgOqdwPs6Yg)

## Notes

- Use uuid and tagged logging to debug Rails application.
- [Rails commit](https://github.com/rails/rails/commit/afde6fdd5ef3e6b0693a7e330777e85ef4cffddb)
- #config/intializers/tagged_logging.rb Wheel::Application.config.log_tags =
  \[:subdomain,:uuid \] #app/controllers/application_controller.rb
  before_action:set_honeybadger_context def set_honeybadger_context hash = {
  uuid: request.uuid } if current_user hash.merge!({ user_id: current_user.id,
  user_email: current_user.email }) end Honeybadger.context hash end

## Links

- [Human page](https://www.bigbinary.com/videos/learn-ruby-on-rails/use-uuid-x-request-id-and-tagged-logging)
