formatLogLevel

Formats a log level to a fixed-width string that's right-aligned, and optionally colored.

string
formatLogLevel

Parameters

level Level

The level to format.

colored bool

Whether to use color.

Return Value

Type: string

The formatted string.