sily.logger

Terminal logging utilities

Modules

pixelfont
module sily.logger.pixelfont

Not really optimised pixel font module. Contains 2 fonts. Probably going to be transformed to read "bitmaps" and moved in it's own module

Members

Enums

LogLevel
enum LogLevel

LogLevel to use with setGlobalLogLevel and log!LogLevel

Functions

block
void block(dstring title, dstring message, int width, int _align)
center
void center(dstring message)

Prints message centered in terminal

critical
void critical(S args)
error
void error(S args)
fatal
void fatal(S args)

This function logs args to stdout In order for the resulting log message to appear LogLevel must be greater or equal then globalLogLevel When using log!LogLevel.off or message it'll be displayed no matter the level of globalLogLevel

globalLogFormattingEnabled
void globalLogFormattingEnabled(bool state)

Enables/Disables formatting (colors, bold, dim...) in log messages

globalLogFormattingEnabled
bool globalLogFormattingEnabled()
globalLogLevel
void globalLogLevel(ubyte l)

Sets global log level

globalLogLevel
ubyte globalLogLevel()

Returns current global log level

hr
void hr(dchar pattern, dstring message, string lineFormat, string msgFormat)

Prints horizontal ruler

info
void info(S args)
log
void log(S args)

This function logs args to stdout In order for the resulting log message to appear LogLevel must be greater or equal then globalLogLevel When using log!LogLevel.off or message it'll be displayed no matter the level of globalLogLevel

message
void message(S args)

This function logs args to stdout In order for the resulting log message to appear LogLevel must be greater or equal then globalLogLevel When using log!LogLevel.off or message it'll be displayed no matter the level of globalLogLevel

printCompilerInfo
void printCompilerInfo(bool _center)

Prints compiler info in format:

progress
void progress(ProgressBar b, int width)
trace
void trace(S args)
warning
void warning(S args)

This function logs args to stdout In order for the resulting log message to appear LogLevel must be greater or equal then globalLogLevel When using log!LogLevel.off or message it'll be displayed no matter the level of globalLogLevel

Structs

ProgressBar
struct ProgressBar

Structure containing progress bar info

RichText
struct RichText

NOT READY YET

Meta