lib/timber.rb in timber-2.1.5 vs lib/timber.rb in timber-2.1.6

- old
+ new

@@ -16,6 +16,21 @@ # Load frameworks require "timber/frameworks" module Timber + # Access the main configuration object. Please see {{Timber::Config}} for more details. + def self.config + Config.instance + end + + # Starts a timer for timing events. Please see {{Timber::Timber.start}} for more details. + def self.start_timer + Timer.start + end + + # Adds context to all logs written within the passed block. Please see + # {{Timber::CurrentContext.with}} for a more detailed description with examples. + def self.with_context(context, &block) + CurrentContext.with(context, &block) + end end \ No newline at end of file