Module: LogStruct::Concerns::Logging::ClassMethods
Instance Method Summary collapse
-
#debug(log) ⇒ void
Log a log struct at debug level.
-
#error(log) ⇒ void
Log a log struct at error level.
-
#fatal(log) ⇒ void
Log a log struct at fatal level.
-
#info(log) ⇒ void
Log a log struct at info level.
-
#warn(log) ⇒ void
Log a log struct at warn level.
Instance Method Details
#debug(log) ⇒ void
This method returns an undefined value.
Log a log struct at debug level
15 16 17 |
# File 'lib/log_struct/concerns/logging.rb', line 15 def debug(log) Rails.logger.debug(log) end |
#error(log) ⇒ void
This method returns an undefined value.
Log a log struct at error level
33 34 35 |
# File 'lib/log_struct/concerns/logging.rb', line 33 def error(log) Rails.logger.error(log) end |
#fatal(log) ⇒ void
This method returns an undefined value.
Log a log struct at fatal level
39 40 41 |
# File 'lib/log_struct/concerns/logging.rb', line 39 def fatal(log) Rails.logger.fatal(log) end |
#info(log) ⇒ void
This method returns an undefined value.
Log a log struct at info level
21 22 23 |
# File 'lib/log_struct/concerns/logging.rb', line 21 def info(log) Rails.logger.info(log) end |
#warn(log) ⇒ void
This method returns an undefined value.
Log a log struct at warn level
27 28 29 |
# File 'lib/log_struct/concerns/logging.rb', line 27 def warn(log) Rails.logger.warn(log) end |