This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLDM repository was using standard ostream object std::cerr for logging errors and std::cout for logging information in journald. Following example shows an instance of log and the object it generates in journal json - | |
std::cerr << "test error logs0=" << 0 << ", log1=" << 1 <<", log2=" << 2 << "\n"; | |
OR | |
int KEY0=0, KEY1= 1, KEY2= 2; | |
std::cerr << "test error logs0=" << KEY0 << ", log1=" << KEY1 << ", log2=" << KEY2 << "\n"; | |
The journal object for above log - | |
{ | |
"_GID" : "0", |