BloombergLP::ball::RecordAttributes::RecordAttributes

Create a record attributes object having the specified attribute values.

Synopsis

Declared in <ball_recordattributes.h>

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);

Description

The object is initialized with the specified timestamp, processID, threadID, fileName, lineNumber, category, severity and message. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
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
basicAllocatormemory allocator; null uses the default