module Logtail
Constants
- VERSION
Public Class Methods
config()
click to toggle source
Access the main configuration object. Please see {{Logtail::Config}} for more details.
# File lib/logtail.rb, line 22 def self.config Config.instance end
start_timer()
click to toggle source
Starts a timer for timing events. Please see {{Logtail::Logtail.start}} for more details.
# File lib/logtail.rb, line 27 def self.start_timer Timer.start end
with_context(context, &block)
click to toggle source
Adds context to all logs written within the passed block. Please see {{Logtail::CurrentContext.with}} for a more detailed description with examples.
# File lib/logtail.rb, line 33 def self.with_context(context, &block) CurrentContext.with(context, &block) end