Class: Hubbado::Log::LogHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/hubbado/log/log_handler.rb

Instance Method Summary collapse

Instance Method Details

#log(_subject, _severity, _msg, _data = nil, _stacktrace = nil, _tags = nil) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/hubbado/log/log_handler.rb', line 9

def log(_subject, _severity, _msg, _data = nil, _stacktrace = nil, _tags = nil)
  raise NotImplementedError
end

#traces?(_severity, _tags = nil) ⇒ Boolean

Whether this handler would use a synthesised stacktrace. Answered before one is made, because Kernel.caller costs more than the rest of a log call put together. True here, so a handler written before this existed is asked nothing and keeps what it always had.

Returns:

  • (Boolean)


7
# File 'lib/hubbado/log/log_handler.rb', line 7

def traces?(_severity, _tags = nil) = true