| 82 | // |
| 83 | |
| 84 | std::string LogMetaData::GetMetaValue(const std::string l, |
| 85 | const bool encaps_logtag, |
| 86 | const std::string postfix) const |
| 87 | { |
| 88 | auto it = std::find_if(metadata.begin(), |
| 89 | metadata.end(), |
| 90 | [l](LogMetaDataValue::Ptr e) |
| 91 | { |
| 92 | return l == e->label; |
| 93 | }); |
| 94 | if (metadata.end() == it) |
| 95 | { |
| 96 | return ""; |
| 97 | } |
| 98 | return (*it)->GetValue(encaps_logtag) + postfix; |
| 99 | } |
| 100 | |
| 101 | |
| 102 | LogMetaData::Records LogMetaData::GetMetaDataRecords(const bool upcase_label, |