[#BloombergLP-ball-RecordStringFormatter-2constructor-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/RecordStringFormatter.adoc[RecordStringFormatter]::RecordStringFormatter :relfileprefix: ../../../ :mrdocs: Create a record formatter having the specified `format` specification, and if the specified `publishInLocalTime` flag is `true`, format the timestamp of each log 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. 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- RecordStringFormatter( char const* format, bool publishInLocalTime, xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#