module Crylog

Overview

A flexible logging framework for Crystal.

Defined in:

crylog.cr
formatters/formattable.cr
logger.cr
message.cr
registry.cr

Class Method Summary

Class Method Detail

def self.configure(&block : Registry.class -> Nil) : Nil #

Configures Crylog. Defines the logger instances.


[View source]
def self.default_channel : String #

The channel to use when no channel is supplied to .logger.


[View source]
def self.default_channel=(default_channel : String) #

The channel to use when no channel is supplied to .logger.


[View source]
def self.logger(channel : String = Crylog.default_channel) : Crylog::Logger #

Returns a Crylog::Logger for the provided channel.


[View source]