class Analogger::Core::Log

Defined in:

analogger/core/log.cr

Constant Summary

DEFAULT_OPTIONS = ["ab"]
DEFAULT_SERVICE = "default"
DEFAULT_TYPE = "file"

Constructors

Instance Method Summary

Constructor Detail

def self.new(service = DEFAULT_SERVICE, levels : Hash(String, Bool) = DEFAULT_SEVERITY_LEVELS, raw_destination = Analogger::Core.default_log, destination : Analogger::Destination | IO | Nil = Analogger::Core.default_log_destination, cull = true, type = DEFAULT_TYPE, options = DEFAULT_OPTIONS) #

[View source]

Instance Method Detail

def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def cull : Bool | Nil #

[View source]
def destination : Analogger::Destination | IO | Nil #

[View source]
def levels : Hash(String, Bool) #

[View source]
def options : Array(String) #

[View source]
def raw_destination : String | Nil #

[View source]
def service : String #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def type : String | Nil #

[View source]