Module: EXEL::LoggingHelper

Included in:
Processors::SplitProcessor
Defined in:
lib/exel/logging_helper.rb

Overview

Logging related helper methods for processors

Instance Method Summary collapse

Instance Method Details

#log_debug(message) ⇒ Object

Logs a message with DEBUG severity



12
13
14
# File 'lib/exel/logging_helper.rb', line 12

def log_debug(message)
  logger.debug(message)
end

#log_error(message) ⇒ Object

Logs a message with ERROR severity



27
28
29
# File 'lib/exel/logging_helper.rb', line 27

def log_error(message)
  logger.error(message)
end

#log_fatal(message) ⇒ Object

Logs a message with FATAL severity



32
33
34
# File 'lib/exel/logging_helper.rb', line 32

def log_fatal(message)
  logger.fatal(message)
end

#log_info(message) ⇒ Object

Logs a message with INFO severity



17
18
19
# File 'lib/exel/logging_helper.rb', line 17

def log_info(message)
  logger.info(message)
end

#log_warn(message) ⇒ Object

Logs a message with WARN severity



22
23
24
# File 'lib/exel/logging_helper.rb', line 22

def log_warn(message)
  logger.warn(message)
end

#loggerLogger

Returns the EXEL logger

Returns:

  • (Logger)

    Returns the EXEL logger



7
8
9
# File 'lib/exel/logging_helper.rb', line 7

def logger
  EXEL.logger
end