Module: Secondhand::Logger
Instance Method Summary collapse
Instance Method Details
#debug(msg) ⇒ Object
12 13 14 |
# File 'lib/secondhand/logging.rb', line 12 def debug(msg) logger.log(Level::DEBUG, msg) end |
#error(msg) ⇒ Object
20 21 22 |
# File 'lib/secondhand/logging.rb', line 20 def error(msg) logger.log(Level::ERROR, msg) end |
#info(msg) ⇒ Object
16 17 18 |
# File 'lib/secondhand/logging.rb', line 16 def info(msg) logger.log(Level::INFO, msg) end |
#logger ⇒ Object
8 9 10 |
# File 'lib/secondhand/logging.rb', line 8 def logger Java::OrgApache::log4j::Logger.get_logger("Secondhand") end |
#warn(msg) ⇒ Object
24 25 26 |
# File 'lib/secondhand/logging.rb', line 24 def warn(msg) logger.log(Level::WARN, msg) end |