module Crylog

Overview

A flexible logging framework for Crystal.

Defined in:

logger.cr
message.cr
registry.cr
crylog.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]