Class: Hubbado::Log::LogHandler
- Inherits:
-
Object
- Object
- Hubbado::Log::LogHandler
- Defined in:
- lib/hubbado/log/log_handler.rb
Direct Known Subclasses
Controls::LogHandler, NotifyRollbar, RailsLogger, StderrLogger
Instance Method Summary collapse
- #log(_subject, _severity, _msg, _data = nil, _stacktrace = nil, _tags = nil) ⇒ Object
-
#traces?(_severity, _tags = nil) ⇒ Boolean
Whether this handler would use a synthesised stacktrace.
Instance Method Details
#log(_subject, _severity, _msg, _data = nil, _stacktrace = nil, _tags = nil) ⇒ Object
9 10 11 |
# File 'lib/hubbado/log/log_handler.rb', line 9 def log(_subject, _severity, _msg, _data = nil, _stacktrace = nil, = 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.
7 |
# File 'lib/hubbado/log/log_handler.rb', line 7 def traces?(_severity, = nil) = true |