abstract struct Crylog::Handlers::AbstractLogHandler
- Crylog::Handlers::AbstractLogHandler
- Crylog::Handlers::LogHandler
- Struct
- Value
- Object
Overview
Implements severity and bubble functionality.
Direct Known Subclasses
Defined in:
handlers/abstract_handler.crConstructors
-
.new(severity : Crylog::Severity = Crylog::Severity::Debug, bubble : Bool = true)
Initializes a log handler that will handle any message with a severity greater than or equal to severity.
Instance Method Summary
-
#bubble : Bool
Whether the message should be handled by the next handler.
-
#bubble=(bubble : Bool)
Whether the message should be handled by the next handler.
-
#handles?(message : Crylog::Message) : Bool
Determines if this handler is able to handle message.
-
#severity : Crylog::Severity
The minimum severity that this handler should handle.
-
#severity=(severity : Crylog::Severity)
The minimum severity that this handler should handle.
Instance methods inherited from struct Crylog::Handlers::LogHandler
close
close
Constructor methods inherited from struct Crylog::Handlers::LogHandler
new
new
Constructor Detail
Initializes a log handler that will handle any message with a severity greater than or equal to severity.
bubble determines if messages should continue on to the next handler.
Instance Method Detail
def handles?(message : Crylog::Message) : Bool
#
Determines if this handler is able to handle message.