Class: AppleShove::Logger
- Inherits:
-
Logger
- Object
- Logger
- AppleShove::Logger
- Includes:
- Singleton
- Defined in:
- lib/apple_shove/logger.rb
Defined Under Namespace
Classes: Formatter
Class Method Summary collapse
- .debug(msg, connection = nil, notification = nil) ⇒ Object
- .error(msg, connection = nil, notification = nil) ⇒ Object
- .fatal(msg, connection = nil, notification = nil) ⇒ Object
- .info(msg, connection = nil, notification = nil) ⇒ Object
- .warn(msg, connection = nil, notification = nil) ⇒ Object
Instance Method Summary collapse
-
#initialize(output_stream = STDOUT) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
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 |