Class: AppleShove::Logger

Inherits:
Logger
  • Object
show all
Includes:
Singleton
Defined in:
lib/apple_shove/logger.rb

Defined Under Namespace

Classes: Formatter

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output_stream = STDOUT) ⇒ Logger

Returns a new instance of Logger.



16
17
18
19
20
# File 'lib/apple_shove/logger.rb', line 16

def initialize(output_stream = STDOUT)
  super(output_stream)
  self.formatter = Formatter.new
  self
end

Class Method Details

.debug(msg, connection = nil, notification = nil) ⇒ Object



26
27
28
# File 'lib/apple_shove/logger.rb', line 26

def self.debug(msg, connection = nil, notification = nil)
  log('debug', msg, connection, notification) 
end

.error(msg, connection = nil, notification = nil) ⇒ Object



22
23
24
# File 'lib/apple_shove/logger.rb', line 22

def self.error(msg, connection = nil, notification = nil)
  log('error', msg, connection, notification) 
end

.fatal(msg, connection = nil, notification = nil) ⇒ Object



30
31
32
# File 'lib/apple_shove/logger.rb', line 30

def self.fatal(msg, connection = nil, notification = nil)
  log('fatal', msg, connection, notification) 
end

.info(msg, connection = nil, notification = nil) ⇒ Object



34
35
36
# File 'lib/apple_shove/logger.rb', line 34

def self.info(msg, connection = nil, notification = nil)
  log('info', msg, connection, notification) 
end

.warn(msg, connection = nil, notification = nil) ⇒ Object



38
39
40
# File 'lib/apple_shove/logger.rb', line 38

def self.warn(msg, connection = nil, notification = nil)
  log('warn', msg, connection, notification) 
end