Method: Waxx#debug
- Defined in:
- lib/waxx/waxx.rb
#debug(str, level = 3) ⇒ Object
Output to the log
Waxx.debug(
str, # The text to output
level # The number 0 (most important) - 9 (least important)
)
# Set the level in config.yaml (debug.level) of what level or lower to ouutput
44 45 46 |
# File 'lib/waxx/waxx.rb', line 44 def debug(str, level=3) puts str.to_s if level <= Waxx['debug']['level'].to_i end |