This utility provides a namespace for functions to create log record formatters based on URI‐like scheme identifiers.

Synopsis

Declared in <ball_recordformatterregistryutil.h>

struct RecordFormatterRegistryUtil;

Static Member Functions

Name

Description

createRecordFormatter

Load, into the specified result a formatter functor that formats as instructed by the specified format and formatOptions. The format may start with a URI‐like scheme (e.g., "qjson://") that selects both the formatter (class) and the syntax of the format specification that follows the scheme. In case format does not start with a scheme the "text://" scheme is assumed. Return 0 if the requested log record formatter was successfully created and loaded into result. Otherwise, if `results is empty, load a default/fallback‐formatter into result, with the requested scheme if that exists or with a sensible fallback text log format otherwise. For further details on behavior in case of errors see {Behavior with Invalid Formats}. This method currently supports the "text", "qjson", and "json" schemes.

Static Data Members

Name

Description

k_FALLBACK_LOG_FORMAT_URI

URI used as a fallback when no scheme‐specific log format is available.

Created with MrDocs