formatLoggerName

Formats the logger's name (usually this is the name of the module where the logger was created) so that it is of a uniform character width.

string
formatLoggerName
(
string name
,
bool colored
)

Parameters

name string

The logger's name.

colored bool

Whether to color the name.

Return Value

Type: string

The formatted logger name string.