
Hello Harish, What types of appenders are you using? Also, if some code shuts down logback before the shutdown hook gets executed, any code within the shutdown hook will be using closed appenders. The different behavior on Windows and SunOS is quite baffling though. HTH, Harish Krishnaswamy wrote:
I have a weird problem in my multi-threaded application on Solaris but not on Windows XP.
Basically I have a bunch of tasks that are executed by the ThreadPoolExecutor and when the last task is executed the ThreadPoolExecutor is required to run a shutdown task (Runnable) provided to the executor by the main thread. The problem is, the log messages from this shutdown task never get flushed to the log file but it sure gets executed. I even added the LoggerContext.stop() to no effect. I am completely baffled as to why it is not flushing, any pointers/ideas will be much appreciated. Thanks.
System Spec ========== System = SunOS Node = jdcsj002 Release = 5.10 KernelID = Generic_137137-09 Machine = sun4u
-Harish
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch