Logger.format

Format and emit a textual log message from the given arguments

The formatted string emitted will have a length up to buffer.length, which is 2048 by default. If no formatting argument is provided (the call has only 2 parameters, e.g. format(Level.Trace, "Baguette");), then the string will be just emitted to the appender(s) verbatim and won't be limited in length.

class Logger
void
format
(
Args...
)

Parameters

Args

Auto-deduced argument list

level Level

Message severity

fmt cstring

Format string to use, see ocean.text.convert.Formatter

args Args

Arguments to format according to fmt.

Meta