Class: Loggr::Adapter::BaseAdapter

Inherits:
AbstractAdapter show all
Defined in:
lib/loggr/adapter/base.rb

Overview

Default backend which is backed Rubys Stdlib Logger.

Direct Known Subclasses

BufferedAdapter, SLF4JAdapter

Instance Method Summary collapse

Methods inherited from AbstractAdapter

#mdc

Instance Method Details

#logger(name, options = {}) ⇒ Object


13
14
15
16
17
# File 'lib/loggr/adapter/base.rb', line 13

def logger(name, options = {})
  name = normalize_name(name)
  @loggers ||= {}
  @loggers[name] ||= build_new_logger(name, options)
end