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

Constructors

== Synopses

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

Create a record attributes object with all attributes having default values&period;


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

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

Create a record attributes object having the value of the specified `original` record attributes object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/RecordAttributes/2constructor-0d.adoc[RecordAttributes](
    xref:BloombergLP/ball/RecordAttributes.adoc[RecordAttributes] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

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

Create a record attributes object having the specified attribute values&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/RecordAttributes/2constructor-06.adoc[RecordAttributes](
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& timestamp,
    int processID,
    xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] threadID,
    std::string&lowbar;view const& fileName,
    int lineNumber,
    std::string&lowbar;view const& category,
    int severity,
    std::string&lowbar;view const& message,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

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

Same as the preceding overload, additionally taking the specified `kernelThreadID`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/RecordAttributes/2constructor-03.adoc[RecordAttributes](
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& timestamp,
    int processID,
    xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] threadID,
    xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] kernelThreadID,
    std::string&lowbar;view const& fileName,
    int lineNumber,
    std::string&lowbar;view const& category,
    int severity,
    std::string&lowbar;view const& message,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| memory allocator&semi; null uses the default
| *original*
| record attributes to copy
| *timestamp*
| creation date and time
| *processID*
| process id of creator
| *threadID*
| thread id of creator
| *fileName*
| file where created (`*FILE*`)
| *lineNumber*
| line number in file (`*LINE*`)
| *category*
| category of logged record
| *severity*
| severity of logged record
| *message*
| log message text
| *kernelThreadID*
| kernel thread id of creator
|===


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