Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/testInfoLogger.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ int main()

// example use of context
InfoLoggerContext ctxt({{InfoLoggerContext::FieldName::Facility, std::string("test1")}});
theLog.log({{InfoLogger::Severity::Info}},ctxt,"infoLogger message - facility test1");
theLog.log({InfoLogger::Severity::Info},ctxt,"infoLogger message - facility test1");

// reuse a context and overwrite some fields
theLog.log({{InfoLogger::Severity::Info}},InfoLoggerContext(ctxt,{{InfoLoggerContext::FieldName::Facility, std::string("test2")}}),"infoLogger message - facility test2");
theLog.log({InfoLogger::Severity::Info},InfoLoggerContext(ctxt,{{InfoLoggerContext::FieldName::Facility, std::string("test2")}}),"infoLogger message - facility test2");

// c++ style
theLog << "another test message " << InfoLogger::endm;
Expand Down