class

Logger

Inherits Reference < Object

Constructors

new(level : Level = Level::Info, out __arg2 : IO = STDOUT, file_path : String | Nil = nil)
Source

Instance methods

debug(loc : Location, msg : String)
Source
debug_ascend
Source
debug_descend
Source
debug_descend(loc : Location, msg : String, &)
Source
debug_descend

DEPRECATED Use debug_descend(loc : Location, msg : String, &block) instead

Source
descend
Source
error(loc : Location, msg : String)

@[Deprecated("Use #error(Error) instead")]

Source
error(err : Error)
Source
error_ascend

@[Deprecated("Use #error(Error) instead")]

Source
error_descend

@[Deprecated("Use #error(Error) instead")]

Source
error_descend(loc : Location, msg : String, &)

@[Deprecated("Use #error(Error) instead")]

Source
error_descend

@[Deprecated("Use #error(Error) instead")]

Source
errors
Source
errors=(errors : Array(Error))
Source
expect(*args)
Source
expect_empty
Source
expect_not(*args)
Source
expect_only(*args)
Source
file_path
Source
has_errors?
Source
info(loc : Location, msg : String)
Source
info_ascend
Source
info_descend
Source
info_descend(loc : Location, msg : String, &)
Source
info_descend

DEPRECATED Use info_descend(loc : Location, msg : String, &block) instead

Source
level
Source
level=(level : Level)
Source
out=(out __arg1 : IO)
Source
warning(loc : Location, msg : String)
Source
warning_ascend
Source
warning_descend
Source
warning_descend(loc : Location, msg : String, &)
Source
warning_descend

DEPRECATED Use warning_descend(loc : Location, msg : String, &block) instead

Source

Macros

def_log(level)
Source

Nested types