struct Crylog::Handlers::NullHandler

Overview

Discards all messages it is able to handle.

Defined in:

handlers/null_handler.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Crylog::Handlers::LogHandler

close close, initialize initialize

Constructor methods inherited from struct Crylog::Handlers::LogHandler

new new

Constructor Detail

def self.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.


[View source]

Instance Method Detail

def handle(message : Crylog::Message) : Bool #

Throws away the given message.


[View source]
def handles?(message : Crylog::Message) : Bool #

Determines if this handler is able to handle message.


[View source]