struct Crylog::Handlers::NullHandler
- Crylog::Handlers::NullHandler
- Crylog::Handlers::LogHandler
- Struct
- Value
- Object
Overview
Discards all messages it is able to handle.
Defined in:
handlers/null_handler.crConstructors
-
.new(severity : Crylog::Severity = Crylog::Severity::Debug)
Initializes a log handler that will handle any message with a severity greater than or equal to severity.
Instance Method Summary
-
#handle(message : Crylog::Message) : Bool
Throws away the given message.
-
#handles?(message : Crylog::Message) : Bool
Determines if this handler is able to handle message.
Instance methods inherited from struct Crylog::Handlers::LogHandler
close
close,
initialize
initialize
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.
Instance Method Detail
def handles?(message : Crylog::Message) : Bool
#
Determines if this handler is able to handle message.