module LogicTools::Traces
Constants
- TRACES
The logger used for displaying the traces.
- TRACES_INDENT
The indent for the traces.
Public Instance Methods
debug(&blk)
click to toggle source
Sends a debug-level trace.
# File lib/logic_tools/traces.rb, line 98 def debug(&blk) TRACES.debug(&blk) end
dec_indent(value = 1)
click to toggle source
Deacreases the indent level by value
.
# File lib/logic_tools/traces.rb, line 109 def dec_indent(value = 1) TRACES_INDENT.dec(value) end
error(&blk)
click to toggle source
Sends an error-level trace.
# File lib/logic_tools/traces.rb, line 83 def error(&blk) TRACES.error(&blk) end
inc_indent(value = 1)
click to toggle source
Increases the indent level by value
.
# File lib/logic_tools/traces.rb, line 104 def inc_indent(value = 1) TRACES_INDENT.inc(value) end
info(&blk)
click to toggle source
Sends an info-level trace.
# File lib/logic_tools/traces.rb, line 93 def info(&blk) TRACES.info(&blk) end
traces_debug()
click to toggle source
Sets the trace level to debug
# File lib/logic_tools/traces.rb, line 77 def traces_debug TRACES.level = Logger::DEBUG end
traces_error()
click to toggle source
Sets the trace level to error.
# File lib/logic_tools/traces.rb, line 62 def traces_error TRACES.level = Logger::ERROR end
traces_info()
click to toggle source
Sets the trace level to info.
# File lib/logic_tools/traces.rb, line 72 def traces_info TRACES.level = Logger::INFO end
traces_warn()
click to toggle source
Sets the trace level to warn.
# File lib/logic_tools/traces.rb, line 67 def traces_warn TRACES.level = Logger::WARN end
warn(&blk)
click to toggle source
Sends a warn-level trace.
# File lib/logic_tools/traces.rb, line 88 def warn(&blk) TRACES.warn(&blk) end