struct Crylog::Registry

Overview

Stores the loggers registered with Crylog.

Defined in:

registry.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.clear : Hash(String, Crylog::Logger) #

Clears the registry.


[View source]
def self.close #

Closes all handlers on each logger.


[View source]
def self.loggers : Hash(String, Crylog::Logger) #

Hash of registered loggers.


[View source]
def self.register(channel : String, &block : Crylog::Logger -> Crylog::Logger) #

Yields a new Crylog::Logger with channel yields to &block. Then registers the resulting Crylog::Logger.


[View source]

Instance Method Detail

def initialize #

[View source]