BloombergLP::ball::Log_Formatter::Log_Formatter

Create a logging formatter for the given category, location, and severity.

Synopsis

Declared in <ball_log.h>

Log_Formatter(
    Category const* category,
    std::string_view const& fileName,
    int lineNumber,
    int severity);

Description

Create a logging formatter that holds (1) the specified category and severity, (2) a record that is created from the specified fileName and lineNumber, and (3) a buffer into which the log message is formatted.

Parameters

NameDescription
categorycategory to which the record will be logged
fileNamesource file name attribute for the record
lineNumbersource line number attribute for the record
severityseverity at which the record will be logged