Structured details to log messages. More...
#include <ilogger.h>
Public Member Functions | |
bool | is_device () const |
Checks if this event pertains to a CUDA device or the CPU. More... | |
bool | is_tagged (const Uint32 required_tags) const |
Checks if all required_tags are present. More... | |
Message_details & | host (const Uint32 id) |
Named constructor. More... | |
Message_details & | device (const Sint32 id) |
Named constructor. More... | |
Message_details & | tag (const Uint32 t) |
Named constructor. More... | |
Message_details & | tag (const Uint32 t, const Uint32 code) |
Named constructor. More... | |
Message_details & | code (const Uint32 c) |
Named constructor. More... | |
Public Attributes | |
Uint32 | host_id |
The cluster ID of the host on which the message originated. More... | |
Sint32 | device_id |
DEVICE_ID_XXX or a CUDA device ID. More... | |
Uint32 | tags |
A set of tags. More... | |
Uint32 | message_id |
An additional message identifier. More... | |
Structured details to log messages.
These details may be used to react to certain types of events or for more accurate log filtering without having to parse the log message text. Note that logging code may not always provide a full set of details.
This type uses named constructors (which can be chained) to allow for clearer construction code.