Module: RuneRb::Core::Logging
Overview
A module responsible for setting up logging functions.
Instance Method Summary collapse
-
#err(*lines) ⇒ Object
(also: #error)
Write an error to the log.
-
#err!(*lines) ⇒ Object
(also: #fatal)
Write a fatal error to the log.
-
#log(*lines) ⇒ Object
(also: #info)
Write information to the log.
-
#log!(*lines) ⇒ Object
(also: #warn)
Write a warning to the log.
Instance Method Details
#err(*lines) ⇒ Object Also known as: error
Write an error to the log.
24 25 26 |
# File 'lib/rune/core/logging.rb', line 24 def err(*lines) RuneRb.logger.error(self.class.name) { lines.join("\n") } end |
#err!(*lines) ⇒ Object Also known as: fatal
Write a fatal error to the log.
32 33 34 |
# File 'lib/rune/core/logging.rb', line 32 def err!(*lines) RuneRb.logger.fatal(self.class.name) { lines.join("\n") } end |