[#BloombergLP-ball-RecordStringFormatter-2constructor-0e5]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/RecordStringFormatter.adoc[RecordStringFormatter]::RecordStringFormatter
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;ball&lowbar;recordstringformatter&period;h&gt;`

Create a record formatter having a default format specification and a timestamp offset of 0&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&period; If `basicAllocator` is not supplied or 0, the currently installed default allocator is used&period; The default format specification is&colon; &grave; &quot;n%d %p&colon;%t %s %f&colon;%l %c %m %un&quot; &grave;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/RecordStringFormatter/2constructor-0b8.adoc[RecordStringFormatter](xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-0b8.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `basicallocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/RecordStringFormatter/2constructor-0b9.adoc[RecordStringFormatter](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicallocator);
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-0b9.adoc[_» more&period;&period;&period;_]#

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&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period; The default format specification is&colon; &grave; &quot;n%d %p&colon;%t %s %f&colon;%l %c %m %un&quot; &grave; 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&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/RecordStringFormatter/2constructor-00.adoc[RecordStringFormatter](
    bool publishInLocalTime,
    xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-00.adoc[_» more&period;&period;&period;_]#

Create a record formatter having a default format specification and the specified timestamp `offset`&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period; The default format specification is&colon; &grave; &quot;n%d %p&colon;%t %s %f&colon;%l %c %m %un&quot; &grave;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/RecordStringFormatter/2constructor-0ea.adoc[RecordStringFormatter](
    xref:BloombergLP/bdlt/DatetimeInterval.adoc[bdlt::DatetimeInterval] const& offset,
    xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-0ea.adoc[_» more&period;&period;&period;_]#

Create a record formatter initialized to the value of the specified `original` record formatter&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/RecordStringFormatter/2constructor-07.adoc[RecordStringFormatter](
    xref:BloombergLP/ball/RecordStringFormatter.adoc[RecordStringFormatter] const& original,
    xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-07.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `format`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/RecordStringFormatter/2constructor-09.adoc[RecordStringFormatter](
    std::string&lowbar;view const& format,
    xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-09.adoc[_» more&period;&period;&period;_]#

Create a record formatter having the specified `format` specification and a timestamp offset of 0&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&period; If `basicAllocator` is not supplied or 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/RecordStringFormatter/2constructor-06.adoc[RecordStringFormatter](
    char const* format,
    xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-06.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `format` and `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/RecordStringFormatter/2constructor-0c.adoc[RecordStringFormatter](
    char const* format,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-0c.adoc[_» more&period;&period;&period;_]#

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&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period; 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&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/RecordStringFormatter/2constructor-08.adoc[RecordStringFormatter](
    char const* format,
    bool publishInLocalTime,
    xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-08.adoc[_» more&period;&period;&period;_]#

Create a record formatter having the specified `format` specification and the specified timestamp `offset`&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/RecordStringFormatter/2constructor-05.adoc[RecordStringFormatter](
    char const* format,
    xref:BloombergLP/bdlt/DatetimeInterval.adoc[bdlt::DatetimeInterval] const& offset,
    xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-05.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
