BloombergLP::ball::RecordAttributes::RecordAttributes

Constructors

Synopses

Declared in <ball_recordattributes.h>

Create a record attributes object with all attributes having default values.

explicit
RecordAttributes(bslma::Allocator* basicAllocator = 0);
» more...

Create a record attributes object having the value of the specified original record attributes object.

RecordAttributes(
    RecordAttributes const& original,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a record attributes object having the specified attribute values.

RecordAttributes(
    bdlt::Datetime const& timestamp,
    int processID,
    bsls::Types::Uint64 threadID,
    std::string_view const& fileName,
    int lineNumber,
    std::string_view const& category,
    int severity,
    std::string_view const& message,
    bslma::Allocator* basicAllocator = 0);
» more...

Same as the preceding overload, additionally taking the specified kernelThreadID.

RecordAttributes(
    bdlt::Datetime const& timestamp,
    int processID,
    bsls::Types::Uint64 threadID,
    bsls::Types::Uint64 kernelThreadID,
    std::string_view const& fileName,
    int lineNumber,
    std::string_view const& category,
    int severity,
    std::string_view const& message,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
basicAllocatormemory allocator; null uses the default
originalrecord attributes to copy
timestampcreation date and time
processIDprocess id of creator
threadIDthread id of creator
fileNamefile where created (FILE)
lineNumberline number in file (LINE)
categorycategory of logged record
severityseverity of logged record
messagelog message text
kernelThreadIDkernel thread id of creator