class Crylog::Message
- Crylog::Message
- Reference
- Object
Overview
Represents a logged message and its metadata.
Included Modules
- JSON::Serializable
Defined in:
message.crConstructors
- .new(message : String, context : Hash(String, Crylog::Context), severity : Crylog::Severity, channel : String, datetime : Time, extra : Hash(String, Crylog::Context))
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#channel : String
What channel the messaged was logged to.
-
#context : Hash(String, Crylog::Context)
Any extra metadata added when the message was logged.
-
#datetime : Time
When the message was logged.
-
#extra : Hash(String, Crylog::Context)
Any extra metadata added by a
Crylog::Processors::LogProcessor
. -
#extra=(extra : Hash(String, Crylog::Context))
Any extra metadata added by a
Crylog::Processors::LogProcessor
. - #formatted : String
- #formatted=(formatted : String)
-
#message : String
The message that was logged.
-
#severity : Severity
The severity level of the logged message.
Constructor Detail
def self.new(message : String, context : Hash(String, Crylog::Context), severity : Crylog::Severity, channel : String, datetime : Time, extra : Hash(String, Crylog::Context))
#
Instance Method Detail
def extra : Hash(String, Crylog::Context)
#
Any extra metadata added by a Crylog::Processors::LogProcessor
.
def extra=(extra : Hash(String, Crylog::Context))
#
Any extra metadata added by a Crylog::Processors::LogProcessor
.