Module: Mixins::Logging
- Extended by:
- ActiveSupport::Concern
- Included in:
- ApplicationController, Interchange::Reader, Interchange::Writer, Reference::Loader
- Defined in:
- lib/mixins/logging.rb
Instance Method Summary collapse
-
#log(message) ⇒ Object
Convenience wrapper for Rails.logger.debug.
-
#log_debug(message) ⇒ Object
An alias for the more abbreviated log() method, for consistency.
- #log_error(message) ⇒ Object
- #log_info(message) ⇒ Object
- #log_warn(message) ⇒ Object
Instance Method Details
#log(message) ⇒ Object
Convenience wrapper for Rails.logger.debug
11 12 13 |
# File 'lib/mixins/logging.rb', line 11 def log() log_debug end |
#log_debug(message) ⇒ Object
An alias for the more abbreviated log() method, for consistency.
17 18 19 |
# File 'lib/mixins/logging.rb', line 17 def log_debug() Rails.logger.debug end |
#log_error(message) ⇒ Object
32 33 34 |
# File 'lib/mixins/logging.rb', line 32 def log_error() Rails.logger.error end |
#log_info(message) ⇒ Object
22 23 24 |
# File 'lib/mixins/logging.rb', line 22 def log_info() Rails.logger.info end |
#log_warn(message) ⇒ Object
27 28 29 |
# File 'lib/mixins/logging.rb', line 27 def log_warn() Rails.logger.warn end |