Create a record formatter having a default format specification, and 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.

Synopsis

Declared in <ball_recordstringformatter.h>

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

Created with MrDocs