hr

Prints horizontal ruler

void
hr
(
dchar pattern = '─'
,
dstring message = ""
,
string lineFormat = ""
,
string msgFormat = ""
,
bool __logFormatEnabled = true
)

Parameters

pattern dchar

Symbol to fill line with

message dstring

Message in middle of line

lineFormat string

Formatting string for line (!USE ONLY FOR FORMATTING)

msgFormat string

Formatting string for message (!USE ONLY FOR FORMATTING)

Examples

hr();
// ───────────────────────────────────────────
hr('~');
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hr('-', "log trace");
// --------------- log trace -----------------
hr('=', "log", "\033[33m");
// prints = in yellow
// ================== log ====================
hr('#', "ERROR", "\033[91m", "\033[101m");
// prints # in red end ERROR in red background
// ################# ERROR ###################

Meta