Skip to content

Commit

Permalink
Merge pull request #78 from sy-c/master
Browse files Browse the repository at this point in the history
minor gcc8 fix
  • Loading branch information
sy-c authored Oct 26, 2021
2 parents a57c285 + 5341251 commit 7f43384
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7f43384

Please sign in to comment.