
Hello Greg, This problem is called "Exit Woes". Search for Exit Woes in http://logback.qos.ch/manual/appenders.html You should shutdown the loggerContext when you stop your application to avoid "flushing" issues which also occur with TCP sockets. The relevant code is: LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); lc.shutdownAndReset(); Anyway, I am glad you could find a solution on your own. Greg Flex wrote:
Hi Thorbjørn Ravn Andersen, I solved it!!! Never mind the ticket/issue I've created then. I called at the end of my program the socketAppender.stop(); and it worked. Now when just single message is send, it will be written correctly etc. Greg
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch