Class: Cybertrain::Logger::Scope
- Inherits:
-
Object
- Object
- Cybertrain::Logger::Scope
- Defined in:
- cybertrain/logger.rb
Overview
What the lines logged on one thread carry while a piece of work runs
there (spec section 12.2, docs/design.md D86): the request’s id, method, path
and where (the controller action, written by the controller), the
line’s tags in order, the index of the request id among them (-1
when it is not shown), and the context an error report adds. One
Scope sits in the thread’s Thread.current[SCOPE_KEY] slot
(swap_scope, current_scope); #tagged adds tags to a copy.