comparison OrthancFramework/UnitTestsSources/LoggingTests.cpp @ 5458:d7c9c85d78dc

fix logging unit tests
author Alain Mazy <am@osimis.io>
date Fri, 08 Dec 2023 10:26:53 +0100
parents 0ea402b4d901
children 48b8dae6dc77
comparison
equal deleted inserted replaced
5457:312e866e2550 5458:d7c9c85d78dc
67 67
68 static bool GetLogLinePayload(std::string& payload, 68 static bool GetLogLinePayload(std::string& payload,
69 const std::string& logLine) 69 const std::string& logLine)
70 { 70 {
71 const char* regexStr = "[A-Z][0-9]{4} [0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6} " 71 const char* regexStr = "[A-Z][0-9]{4} [0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6} "
72 "[a-zA-Z\\.\\-_]+:[0-9]+\\] (.*)" EOLSTRING "$"; 72 ".{16} [a-zA-Z\\.\\-_]+:[0-9]+\\] (.*)" EOLSTRING "$";
73 73
74 boost::regex regexObj(regexStr); 74 boost::regex regexObj(regexStr);
75 75
76 //std::stringstream regexSStr; 76 //std::stringstream regexSStr;
77 //regexSStr << "E[0-9]{4} [0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6} " 77 //regexSStr << "E[0-9]{4} [0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6} "