module MStrap::DSL::Logging

Direct including types

Defined in:

mstrap/dsl/logging.cr

Instance Method Summary

Instance Method Detail

def log(msg) #

Logs a message, without appending a newline.


[View source]
def logc(msg) #

Logs a message at the FATAL level and terminate program. On a TTY, this will output in red. In debug, this will also print the stacktrace.


[View source]
def logd(msg) #

Log a message at the DEBUG level. This will only be logged when mstrap is in debug mode.


[View source]
def logn(msg) #

Logs a message, appending a newline.


[View source]
def logw(msg) #

Logs a message at the WARN level. On a TTY, this will output in yellow.


[View source]
def success(msg) #

Logs a success message at the INFO level. On a TTY, this will output in green.


[View source]