[logback-dev] Print literal curly bracket

logback developers list logback-dev at qos.ch
Tue Feb 18 16:05:11 UTC 2025


Hi

How to print the curly bracket } in the SuffixPattern of 
ch.qos.logback.classic.net.SyslogAppender?

I tried escaping with backslash, HTML-encoding but without success.

Use case: My %msg has a JSON format, but I need to add some fields via 
MDC and then close the JSON message with a curly closing bracket.

Kind regards,

Philip




More information about the logback-dev mailing list