Module: Arcenciel::Logging

Included in:
Device, Manager, Surfaces::Controller, Surfaces::Knob
Defined in:
lib/arcenciel/utility/logging.rb

Defined Under Namespace

Classes: DefaultFormater

Constant Summary collapse

DEFAULT_LOGGER =
Logger.new($stdout).tap do |l|
  l.formatter = DefaultFormater.new
end

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.loggerObject



10
11
12
# File 'lib/arcenciel/utility/logging.rb', line 10

def logger
  @logger ||= DEFAULT_LOGGER
end

Instance Method Details

#log_error(msg) ⇒ Object



27
28
29
# File 'lib/arcenciel/utility/logging.rb', line 27

def log_error(msg)
  logger.error(msg)
end

#log_info(msg) ⇒ Object



19
20
21
# File 'lib/arcenciel/utility/logging.rb', line 19

def log_info(msg)
  logger.info(msg)
end

#log_warn(msg) ⇒ Object



23
24
25
# File 'lib/arcenciel/utility/logging.rb', line 23

def log_warn(msg)
  logger.warn(msg)
end

#loggerObject



15
16
17
# File 'lib/arcenciel/utility/logging.rb', line 15

def logger
  Logging.logger
end