Class: DisqueJockey::Logger
- Inherits:
-
Object
- Object
- DisqueJockey::Logger
- Defined in:
- lib/disque_jockey/logger.rb
Instance Method Summary collapse
- #debug(message) ⇒ Object
- #error(message) ⇒ Object
-
#fatal(message) ⇒ Object
logging levels.
- #info(message) ⇒ Object
-
#initialize(klass) ⇒ Logger
constructor
A new instance of Logger.
- #logger ⇒ Object
- #warn(message) ⇒ Object
Constructor Details
#initialize(klass) ⇒ Logger
Returns a new instance of Logger.
6 7 8 9 10 11 |
# File 'lib/disque_jockey/logger.rb', line 6 def initialize(klass) init_color_scheme @logger = Logging.logger[klass] @logger.add_appenders(*log_appenders) @logger.level = :info end |
Instance Method Details
#debug(message) ⇒ Object
34 35 36 |
# File 'lib/disque_jockey/logger.rb', line 34 def debug() @logger.debug() end |
#error(message) ⇒ Object
22 23 24 |
# File 'lib/disque_jockey/logger.rb', line 22 def error() @logger.error() end |
#fatal(message) ⇒ Object
logging levels
18 19 20 |
# File 'lib/disque_jockey/logger.rb', line 18 def fatal() @logger.fatal() end |
#info(message) ⇒ Object
30 31 32 |
# File 'lib/disque_jockey/logger.rb', line 30 def info() @logger.info() end |
#logger ⇒ Object
13 14 15 |
# File 'lib/disque_jockey/logger.rb', line 13 def logger @logger end |
#warn(message) ⇒ Object
26 27 28 |
# File 'lib/disque_jockey/logger.rb', line 26 def warn() @logger.warn() end |