Create a record formatter with the default format and local‐time flag.

Synopsis

Declared in <ball_recordstringformatter.h>

explicit
RecordStringFormatter(
    bool publishInLocalTime,
    allocator_type const& allocator = allocator_type());

Description

If the specified publishInLocalTime flag is true, format the timestamp of each logged record in the local time of the current task, and format the timestamp in UTC otherwise. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. The default format specification is: ` "n%d %p:%t %s %f:%l %c %m %un" ` Note that local time offsets are calculated for the timestamp of each formatted record and so track transitions into and out of Daylight Saving Time.

Parameters

Name

Description

publishInLocalTime

whether to format timestamps in local time

allocator

allocator used to supply memory

Created with MrDocs