Class: Hubbado::Log::Controls::LogHandler
- Inherits:
-
LogHandler
- Object
- LogHandler
- Hubbado::Log::Controls::LogHandler
- Defined in:
- lib/hubbado/log/controls/log_handler.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#message ⇒ Object
Returns the value of attribute message.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#stacktrace ⇒ Object
Returns the value of attribute stacktrace.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
8 9 10 |
# File 'lib/hubbado/log/controls/log_handler.rb', line 8 def data @data end |
#message ⇒ Object
Returns the value of attribute message.
7 8 9 |
# File 'lib/hubbado/log/controls/log_handler.rb', line 7 def @message end |
#severity ⇒ Object
Returns the value of attribute severity.
6 7 8 |
# File 'lib/hubbado/log/controls/log_handler.rb', line 6 def severity @severity end |
#stacktrace ⇒ Object
Returns the value of attribute stacktrace.
9 10 11 |
# File 'lib/hubbado/log/controls/log_handler.rb', line 9 def stacktrace @stacktrace end |
#subject ⇒ Object
Returns the value of attribute subject.
5 6 7 |
# File 'lib/hubbado/log/controls/log_handler.rb', line 5 def subject @subject end |
Instance Method Details
#log(subject, severity, message, data = nil, stacktrace = nil) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/hubbado/log/controls/log_handler.rb', line 11 def log(subject, severity, , data = nil, stacktrace = nil) self.subject = subject self.severity = severity self. = self.data = data self.stacktrace = stacktrace end |