No, may bad. I presumed that the question was limited to a small set of machines. To deal with this issue at a larger scale, you may define a [variable on the fly|https://logback.qos.ch/manual/configuration.html#definingPropsOnTheFly, say OS_CHARSET, and pass OS_CHARSET as the charset to PatternLayoutEncoder. Logback allows you to perform any computation while defining the value of variable. Such computation may consist of inquiring the console for the charset it uses. |