module DohLog
Constants
- DEBUG
- ERROR
- INFO
- SEVERITY_LEVELS
- WARN
Public Class Methods
severity_text(level)
click to toggle source
# File lib/dohlog/severity.rb, line 9 def self.severity_text(level) SEVERITY_LEVELS[level] end
Public Instance Methods
disable() { || ... }
click to toggle source
# File lib/dohlog.rb, line 21 def disable return DohLog::Interface.disable if !block_given? DohLog::Interface.disable do yield end end
enable()
click to toggle source
# File lib/dohlog.rb, line 17 def enable DohLog::Interface.enable end
log_thread_ids(enabled)
click to toggle source
# File lib/dohlog.rb, line 28 def log_thread_ids(enabled) @@log_thread_ids = enabled end
setup(acceptor)
click to toggle source
# File lib/dohlog.rb, line 9 def setup(acceptor) DohLog::Interface.setup(acceptor) end
should_log_thread_ids()
click to toggle source
# File lib/dohlog.rb, line 32 def should_log_thread_ids @@log_thread_ids end
shutdown()
click to toggle source
# File lib/dohlog.rb, line 13 def shutdown DohLog::Interface.shutdown end