[logback-user] logback console appender slow on windows xp
ceki at qos.ch
Tue Dec 20 19:15:31 CET 2011
On 20.12.2011 18:50, ceki wrote:
> Hi Peter,
> If I understand correctly, you have shown that invoking
> System.out.println is slow with javaw. Do you know why?
> If the reason was known, for example it was due to exceptions being
> thrown, ConsoleAppender could address that problem.
Writing to System.out does not throw an exception under javaw.
> Is it possible to check whether an app is running under javaw and not
> java? ConsoleAppender could disable itself under javaw.
I don't think it is possible to distinguish between java and javaw by
System properties. In JDK 1.6, it is possible to distinguish between
java and javaw by invoking System.console: http://goo.gl/Nljdl
More information about the Logback-user