Module: LogWeasel
- Defined in:
- lib/log_weasel.rb,
lib/log_weasel/transaction.rb
Defined Under Namespace
Modules: HoptoadNotifier, Resque, Transaction Classes: BufferedLogger, Config, Middleware, Railtie
Class Method Summary collapse
Class Method Details
.config ⇒ Object
14 15 16 |
# File 'lib/log_weasel.rb', line 14 def self.config @@config ||= Config.new end |
.configure {|self.config| ... } ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/log_weasel.rb', line 18 def self.configure yield self.config if defined? ::HoptoadNotifier class << ::HoptoadNotifier include LogWeasel::HoptoadNotifier; end end if defined? Resque LogWeasel::Resque.initialize! end end |