Module: LogStruct::Concerns::Logging::ClassMethods

Extended by:
T::Sig
Included in:
LogStruct
Defined in:
lib/log_struct/concerns/logging.rb

Instance Method Summary collapse

Instance Method Details

#debug(log) ⇒ void

This method returns an undefined value.

Log a log struct at debug level

Parameters:



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

Parameters:



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

Parameters:



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

Parameters:



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

Parameters:



27
28
29
# File 'lib/log_struct/concerns/logging.rb', line 27

def warn(log)
  Rails.logger.warn(log)
end