[#BloombergLP-ball-RecordJsonFormatter-2constructor-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/RecordJsonFormatter.adoc[RecordJsonFormatter]::RecordJsonFormatter :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<ball_recordjsonformatter.h>` Create a record JSON formatter having the same format specification and record separator as in the specified `original` formatter, and adopting all outstanding memory allocations and the allocator associated with the `original` formatter. `original` is left in a valid but unspecified state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/RecordJsonFormatter/2constructor-03.adoc[RecordJsonFormatter](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<RecordJsonFormatter>] original) noexcept; ---- [.small]#xref:BloombergLP/ball/RecordJsonFormatter/2constructor-03.adoc[_» more..._]# Create a record JSON formatter having a default format specification and record separator. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the allocator is used. The default format specification is: ` ["timestamp", "processId", "threadId", "severity", "file", "line",] "category", "message", "attributes"] ` The default record separator is "n". [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/RecordJsonFormatter/2constructor-06.adoc[RecordJsonFormatter](xref:BloombergLP/ball/RecordJsonFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/RecordJsonFormatter/2constructor-06.adoc[_» more..._]# Create a record JSON formatter, having the same format specification and record separator as in the specified `original` formatter. The format specification of `original` is moved to the new object, and all outstanding memory allocations and the specified `allocator` are adopted if `allocator == original.get_allocator()`. `original` is left in a valid but unspecified state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/RecordJsonFormatter/2constructor-01b.adoc[RecordJsonFormatter]( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<RecordJsonFormatter>] original, xref:BloombergLP/ball/RecordJsonFormatter/allocator_type.adoc[allocator_type] const& allocator); ---- [.small]#xref:BloombergLP/ball/RecordJsonFormatter/2constructor-01b.adoc[_» more..._]# Create a record JSON formatter initialized to the value of the specified `original` record formatter. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/RecordJsonFormatter/2constructor-010.adoc[RecordJsonFormatter]( xref:BloombergLP/ball/RecordJsonFormatter.adoc[RecordJsonFormatter] const& original, xref:BloombergLP/ball/RecordJsonFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/RecordJsonFormatter/2constructor-010.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#