module Pog::Logger

Extended Modules

Defined in:

pog/logger.cr

Constant Summary

LOGGER = Log.for("Pog", Log::Severity::Warn)

Instance Method Summary

Macro Summary

Instance Method Detail

def error(message : String) #

[View source]
def fatal(message : String) #

[View source]
def status(message : String, alt : Bool = false) #

Status log (most common)


[View source]

Macro Detail

macro create_log_levels(levels) #

[MACRO] Create log level functions from the hash eg. def error(message : String) LOGGER.error { message.colorize({{color}}).mode(:bold) } exit(1) end


[View source]