Class: Gallus::Event
- Inherits:
-
Struct
- Object
- Struct
- Gallus::Event
- Defined in:
- lib/gallus/event.rb
Overview
Internal: Every log event is wrapped with this envelope. It holds information about the logger that performed the operation, log level, message (or object passed) and full payload. Also includes information at what time event has been recorded.
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#message ⇒ Object
Returns the value of attribute message.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#recorded_at ⇒ Object
readonly
Returns the value of attribute recorded_at.
Instance Method Summary collapse
-
#initialize ⇒ Event
constructor
A new instance of Event.
Constructor Details
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level
5 6 7 |
# File 'lib/gallus/event.rb', line 5 def level @level end |
#logger ⇒ Object
Returns the value of attribute logger
5 6 7 |
# File 'lib/gallus/event.rb', line 5 def logger @logger end |
#message ⇒ Object
Returns the value of attribute message
5 6 7 |
# File 'lib/gallus/event.rb', line 5 def @message end |
#payload ⇒ Object
Returns the value of attribute payload
5 6 7 |
# File 'lib/gallus/event.rb', line 5 def payload @payload end |
#recorded_at ⇒ Object (readonly)
Returns the value of attribute recorded_at.
6 7 8 |
# File 'lib/gallus/event.rb', line 6 def recorded_at @recorded_at end |