We used to have a custom formatter for Timestamp attributed configured like this:
Format="(%LineID%) %TimeStamp(formatter=%Y-%m-%dT%H:%M:%S%F)% [%Severity%] <%ProcessID%:%ThreadID%> [%Component%] %Scope(MinSeverity=info)% %Message%"
However, this line no longer parses with boost 1.56 with the parser failing at the percent sing inside the format string:
formatter=%Y-%m-%dT%H:%M:%S%F.
Is there an alternative? Thank you.
Try enveloping formatter value in double quotes:
formatter=\"%Y-%m-%dT%H:%M:%S%F\"
Note that you'll have to escape the double quotes in the settings file.
That worked. Thanks!
Log in to post a comment.
We used to have a custom formatter for Timestamp attributed configured like this:
Format="(%LineID%) %TimeStamp(formatter=%Y-%m-%dT%H:%M:%S%F)% [%Severity%] <%ProcessID%:%ThreadID%> [%Component%] %Scope(MinSeverity=info)% %Message%"
However, this line no longer parses with boost 1.56 with the parser failing at the percent sing inside the format string:
formatter=%Y-%m-%dT%H:%M:%S%F.
Is there an alternative?
Thank you.
Try enveloping formatter value in double quotes:
formatter=\"%Y-%m-%dT%H:%M:%S%F\"
Note that you'll have to escape the double quotes in the settings file.
That worked.
Thanks!