Module: Logz

Defined in:
lib/logz.rb,
lib/logz/version.rb,
lib/logz/multi_io.rb,
lib/logz/multi_logger.rb,
lib/logz/logger_wrapper.rb

Defined Under Namespace

Classes: Config, LoggerWrapper, MultiIO, MultiLogger

Constant Summary collapse

VERSION =
"1.5.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



27
28
29
# File 'lib/logz.rb', line 27

def config
  @config
end

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:



35
36
37
38
# File 'lib/logz.rb', line 35

def self.configure
  self.config ||= Config.new
  yield(config) if block_given?
end

.new(*params) ⇒ Object



30
31
32
33
# File 'lib/logz.rb', line 30

def self.new(*params)
  configure
  MultiLogger.new(*params)
end