Create a record attributes object having the specified attribute values.
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);
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.
| Name | Description |
|---|---|
| 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 |
| basicAllocator | memory allocator; null uses the default |