ppkarwasz commented on issue #2666:
URL: 
https://github.com/apache/logging-log4j2/issues/2666#issuecomment-2217034113

   **Remark**: You can easily workaround the problem with the evaluation of 
`${env:TZ:-%d{yyyy-MM-dd HH:mm:ss.SSS}{UTC+07}}` by:
   
   * either defining a `TZ` configuration property instead of using a default 
value in the `${...}` expression:
     ```xml
     <Properties>
       <Property name="TZ" value="%d{yyyy-MM-dd HH:mm:ss.SSS}{Asia/Bangkok}"/>
     </Properties>
     ```
     Then you can use `${env:TZ}`.
   * or definining a configuration property to escape the closing curly brace 
`}`. E.g.
     ```xml
     <Properties>
       <Property name="CBRACE" value="}"/>
     </Properties>
     ```
     Then you can use `${end:TZ:-%d{yyyy-MM-dd 
HH:mm:ss.SSS${CBRACE}{Asia/Bangkok${CBRACE}}`.
   
   [Java does not seem to support the `Asia/Hanoi` timezone]


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to