Module: Yell::Helpers::Tracer
- Included in:
- Logger
- Defined in:
- lib/yell/helpers/tracer.rb
Overview
:nodoc:
Instance Method Summary collapse
- #trace ⇒ Object
-
#trace=(severity) ⇒ Yell::Level
Set whether the logger should allow tracing or not.
Instance Method Details
#trace ⇒ Object
28 29 30 |
# File 'lib/yell/helpers/tracer.rb', line 28 def trace @__trace__ end |
#trace=(severity) ⇒ Yell::Level
Set whether the logger should allow tracing or not. The trace option will tell the logger when to provider caller information.
20 21 22 23 24 25 26 |
# File 'lib/yell/helpers/tracer.rb', line 20 def trace=( severity ) @__trace__ = case severity when Yell::Level then severity when false then Yell::Level.new("gt.#{Yell::Severities.last}") else Yell::Level.new(severity) end end |