compactLoggerName

Compacts the logger's name so that it fits within a specified length, and is still somewhat legible.

string
compactLoggerName
(
string name
,
size_t maxLength
)

Parameters

name string

The logger's name.

maxLength size_t

The max length of the name.

Return Value

Type: string

The compacted logger name.