|
BDE 4.39.x Production Release
|
Provides log record formatter option values.
Provides log record formatter option values.
This component provides a value-semantic attribute class, RecordFormatterOptions, that represents the options that are in addition to the format string for configuring a log record formatter "plugin".
This section illustrates intended use of this component.
Suppose we are configuring a log record formatter and want to specify options for how timestamps should be rendered. We can use ball::RecordFormatterOptions to specify these configuration values.
First, we create a RecordFormatterOptions object with default settings, which uses UTC timezone:
Then, if we want to configure the formatter to use local time instead, we can either create the options object with the desired timezone:
Or we can modify an existing options object:
Finally, we can pass these options to a formatter configuration function (such as ball::RecordJsonFormatter::loadJsonSchemeFormatter) to configure how timestamps are rendered in the log output.