Module: Airbrake::Loggable Private
- Included in:
- Backlog, Backtrace, CodeHunk, Filters::ExceptionAttributesFilter, Filters::GitLastCheckoutFilter, Filters::KeysFilter, Notice, NoticeNotifier, PerformanceNotifier, RemoteSettings, Response, SyncSender, ThreadPool
- Defined in:
- lib/airbrake-ruby/loggable.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Loggable is included into any class that wants to be able to log.
By default, Loggable defines a null logger that doesn’t do anything. You are supposed to overwrite it via the Loggable.instance method before calling #logger.
Class Attribute Summary collapse
- .instance ⇒ Logger private
Instance Method Summary collapse
-
#logger ⇒ Logger
private
Standard Ruby logger object.
Class Attribute Details
.instance ⇒ Logger
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/airbrake-ruby/loggable.rb', line 24 def instance @instance ||= ::Logger.new(File::NULL).tap { |l| l.level = ::Logger::WARN } end |