abstract struct Crylog::Handlers::LogHandler

Overview

Base struct of all handlers.

Direct Known Subclasses

Defined in:

handlers/handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def close #

Called when the application exits. Can be used to free up resources used within the handler. Such as closing IOs, finalizing connections, etc.

NOTE Implementations have to be idempotent. Loggers sharing the same instance of a handler would be closed more than once.


[View source]