Menu

custom formatter parser

Help
Oleg
2014-09-30
2014-10-03
  • Oleg

    Oleg - 2014-09-30

    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.

     
  • Andrey Semashev

    Andrey Semashev - 2014-10-01

    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.

     
  • Oleg

    Oleg - 2014-10-03

    That worked.
    Thanks!

     

Log in to post a comment.