Module: OpenSearch::Loggable
- Included in:
- Transport::Transport::Base
- Defined in:
- lib/opensearch/transport/transport/loggable.rb
Overview
Module to encapsulate all logging functionality.
Instance Method Summary collapse
-
#log_debug(message) ⇒ Object
Log a debug message.
-
#log_error(message) ⇒ Object
Log an error message.
-
#log_fatal(message) ⇒ Object
Log a fatal message.
-
#log_info(message) ⇒ Object
Log an info message.
-
#log_warn(message) ⇒ Object
Log a warn message.
Instance Method Details
#log_debug(message) ⇒ Object
Log a debug message.
42 43 44 |
# File 'lib/opensearch/transport/transport/loggable.rb', line 42 def log_debug() logger.debug() if logger && logger.debug? end |
#log_error(message) ⇒ Object
Log an error message.
54 55 56 |
# File 'lib/opensearch/transport/transport/loggable.rb', line 54 def log_error() logger.error() if logger && logger.error? end |
#log_fatal(message) ⇒ Object
Log a fatal message.
66 67 68 |
# File 'lib/opensearch/transport/transport/loggable.rb', line 66 def log_fatal() logger.fatal() if logger && logger.fatal? end |
#log_info(message) ⇒ Object
Log an info message.
78 79 80 |
# File 'lib/opensearch/transport/transport/loggable.rb', line 78 def log_info() logger.info() if logger && logger.info? end |
#log_warn(message) ⇒ Object
Log a warn message.
90 91 92 |
# File 'lib/opensearch/transport/transport/loggable.rb', line 90 def log_warn() logger.warn() if logger && logger.warn? end |