Class: NauktisUtils::Tracer
- Inherits:
-
Object
- Object
- NauktisUtils::Tracer
- Defined in:
- lib/nauktis_utils/tracer.rb
Class Method Summary collapse
- .debug(message) ⇒ Object
- .error(message) ⇒ Object
- .fatal(message) ⇒ Object
- .info(message) ⇒ Object
- .log(severity, message) ⇒ Object
- .warn(message) ⇒ Object
Class Method Details
.debug(message) ⇒ Object
3 4 5 |
# File 'lib/nauktis_utils/tracer.rb', line 3 def self.debug() log(Logger::DEBUG, ) end |
.error(message) ⇒ Object
15 16 17 |
# File 'lib/nauktis_utils/tracer.rb', line 15 def self.error() log(Logger::ERROR, ) end |
.fatal(message) ⇒ Object
19 20 21 |
# File 'lib/nauktis_utils/tracer.rb', line 19 def self.fatal() log(Logger::FATAL, ) end |
.info(message) ⇒ Object
7 8 9 |
# File 'lib/nauktis_utils/tracer.rb', line 7 def self.info() log(Logger::INFO, ) end |
.log(severity, message) ⇒ Object
23 24 25 |
# File 'lib/nauktis_utils/tracer.rb', line 23 def self.log(severity, ) Logging.logger.add(severity, , caller[1]) end |
.warn(message) ⇒ Object
11 12 13 |
# File 'lib/nauktis_utils/tracer.rb', line 11 def self.warn() log(Logger::WARN, ) end |