|
| Message () |
| Basic constructor where everything defaults to nothing. More...
|
|
| Message (const std::string &text, int rank, const std::string &fileName, int lineNumber, int level, const std::string &tag) |
| Constructor where you can specify all values for a Message that originated from a specific rank. More...
|
|
| Message (const std::string &text, const std::vector< int > &ranks, int count, int ranksLimit, const std::string &fileName, int lineNumber, int level, const std::string &tag) |
| Constructor where you can specify all values for a Message that originated from a multiple ranks. More...
|
|
std::string | text () const |
| Returns the text of the Message. More...
|
|
std::vector< int > | ranks () const |
| Returns the vector of the ranks where this Message originated. More...
|
|
int | count () const |
| Returns the total count of this Message. More...
|
|
std::string | stringOfRanks (std::string delimiter=",") const |
| Returns a string of ranks delimited by ',' unless otherwise specified. More...
|
|
std::string | fileName () const |
| Returns the file name of where this Message originated. More...
|
|
int | lineNumber () const |
| Returns the line number of where this Message originated. More...
|
|
int | level () const |
| Returns the level of the severity of the Message. More...
|
|
std::string | tag () const |
| Returns the tag of where the Message originated. More...
|
|
void | text (const std::string &newText) |
| Sets a new text for this Message. More...
|
|
void | fileName (const std::string &newFileName) |
| Sets a new file name for this Message. More...
|
|
void | lineNumber (int newLineNumber) |
| Sets a new line number for this Message. More...
|
|
void | level (int newLevel) |
| Sets a new severity level for this Message. More...
|
|
void | tag (const std::string &newTag) |
| Sets a new tag of where the Message originated. More...
|
|
void | addRank (int newRank, int ranksLimit) |
| Adds a rank to this Message. More...
|
|
void | addRanks (const std::vector< int > &newRanks, int count, int ranksLimit) |
| Adds multiple ranks to this Message. count tracks how many times this message has occurred since duplicates are being filtered. More...
|
|
std::string | pack () |
| Returns a string of all information about this Message packed into a string. More...
|
|
void | unpack (const std::string &packedMessage, int ranksLimit) |
| Overrides the information in this Message with the given packed string. More...
|
|
Holds information about messages and where they came from.
This class holds all the information about an individual message and where it came from, such as rank, file name, and line number.
- See also
- Combiner Lumberjack
axom::lumberjack::Message::Message |
( |
const std::string & |
text, |
|
|
const std::vector< int > & |
ranks, |
|
|
int |
count, |
|
|
int |
ranksLimit, |
|
|
const std::string & |
fileName, |
|
|
int |
lineNumber, |
|
|
int |
level, |
|
|
const std::string & |
tag |
|
) |
| |
|
inline |
Constructor where you can specify all values for a Message that originated from a multiple ranks.
- Parameters
-
[in] | text | Actual text of the Message. |
[in] | ranks | The rank where the Message originated. |
[in] | count | Total number of instances of this Message. |
[in] | ranksLimit | Limit on how many ranks are individually tracked per Message. |
[in] | fileName | The file name where the Message originated. |
[in] | lineNumber | The line number where the Message originated. |
[in] | level | The level of the severity of the Message. |
[in] | tag | The tag of where the Message originated. |
References addRank(), addRanks(), count(), fileName(), level(), lineNumber(), pack(), axom::lumberjack::packMessages(), ranks(), stringOfRanks(), tag(), text(), unpack(), and axom::lumberjack::unpackMessages().