I'm just starting to use logback to register my Java project running on glassfish3 AS, and I notice some strange thing. This line of code
LOG.error(" {} .", calc);
generates the normal expected result if I run my application in windows. But if I have the same configuration on a Mac, I have question marks instead of words, for example:
15:37:29.083 ERROR rggcTotalNachController - ?????????? [id=8871] ??? ???????????.
my log configuration:
<appender name="FILE" class="ch.qos.logback.core.FileAppender"> <file>../logs/logback.log</file> <encoder> <pattern>%d{HH:mm:ss.SSS} %-5level %logger{35} - %msg%n</pattern> </encoder> </appender>
Can someone please tell me what I am doing wrong?
Simy4 source share