Release of logback version 0.9.10

27th of October 2008 - Release of version 0.9.10 After a lull of 7 months, I am happy to announce the release of logback version 0.9.10. This version includes both bug fixes as well as significant enhancements. Here is the list: In case of errors during initialization, logback-classic now automatically prints out its internal status. This has been a frequently requested feature. The LogbackValve in logback-access (ensuring integration with Tomcat), will now systematically print its internal status upon initialization, unless told to be quiet. This greatly helps troubleshooting the configration of logback-access under Tomcat. Fixed bug 147 which occured when the user inadvertently attempted to set the layout of a SyslogAppender. The code now actively prevents this. Documenation has been updated to reflect the change. Fixed bug LBCLASSIC-56 originally reported by Michel Colette. Backslash characters are now correctly interpreted in filename patterns. The TurboFilterChain in a LoggerContext is now cleared when the shutdownAndReset method is called. This problem was reported on May 1st, 2008, by Julia Hu on the logback developpers list. Fixed issue LBCORE-48. During rollover, compression of large files would bring all logging to a halt. In this latest release, the rolled over file is first renamed, which is a relatively fast operation, and only then is the renamed file compressed asyncronously (in a separate thread). Fixed issue LBCORE-11. It is now possible to instruct TimeBasedRollingPolicy to delete old files, thus controlling then number of archived log files. Fixed issue LBCORE-42. If the parent directory of the log file does not exist, then FileAppender will create it, including any necessary but nonexistent parent directories. Fixed LBCORE-15 reported by Klaus Unger and others. DBAppender should now work with Oracle 9, 10g and 11g, regardless of the JDBC driver type used. Fixed issue LBCORE-17 reported by Thorbjørn Ravn Andersen. Logback now relies on Geronimo JMS API specifications instead of Sun's JMS API specification, the latter requiring manual installation. With Geronimo JMS, logback can be built using Maven without needing to manually install any dependencies. Fixed issue LBCORE-23. In PatternLayout, parenthesis can be used to group conversion patterns. It follows that the '(' and ')' carry special meaning and need to be escaped to be used as literals. This is now properly documented. The location of the default configuration file can be specified by a system property. This feature was requested in LBCORE-32 by Ted Graham, Matt Fowles, Ivan Biddles and Ralph Goers. Fixed issue LBCORE-55 reported by Natan Cox. WriterAppender now outputs its presentation footer and file footer in the the correct order. Fixed issue LBCORE-27 reported by Peter Royal. SMTPAppender now outputs its presentation footer and file footer in the the correct order. Fixed issue LBCLASSIC-67 reported by Alessandro Fustini. SMTPAppender now correctly configures the layout used to format the subject line of the outgoing email. It no longer appends a lengthy stack trace to the subject line. Fixed issue LBCLASSIC-68 reported by Gili Tzabari. In environments where the TCCL (Thread Context Class Laoder) was not set, logback was unable to located its default configuraiton files. Logback now uses the class loader that loaded logback itself to locate its resources instead of the TCCL. This approach is simpler and deemed to cover more environments, i.e. more widely applicable. Fixed issue LBGENERAL-24 reported by Hung Tang. SMTPAppender now supports plain username/password authentication as well as both the STARTTLS command and SSL connections. Fixed issue LBCLASSIC-48 reported by Peter Royal. SyslogAppender now correctly outputs hours as 0-23 and not as 1-12 as previously. Added a new TurboFilter called DynamicThresholdFilter which can filter events depending on MDC values based on a variery of criteria such as company name, product or the end user. This filter was contributed by Ralph Goers in LBCLASSIC-53. You can download logback, including full source code, class files and documentation on our download page, shown below. http://logback.qos.ch/download.html You can receive logback related announcements by subscribing to the logback announce mailing list. To subscribe to logback-announce list, please visit the following URL. http://qos.ch/mailman/listinfo/logback-announce Enjoy, -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

Just tried 0.9.10 with slf4j 1.5.5 and I get the following exception, reverting to 0.9.9 + slf4j 1.5.5 it works fine. Not quite sure what's happening here but if there's any extra info I can provide... Caused by: java.lang.NullPointerException at java.util.HashMap.<init>(HashMap.java:223) at org ..slf4j ..impl ..CopyOnInheritThreadLocal.childValue(CopyOnInheritThreadLocal.java:20) at org ..slf4j ..impl ..CopyOnInheritThreadLocal.childValue(CopyOnInheritThreadLocal.java:11) at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:334) at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:242) at java.lang.ThreadLocal.createInheritedMap(ThreadLocal.java:217) at java.lang.Thread.init(Thread.java:358) at java.lang.Thread.<init>(Thread.java:419) at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver $ MulticastReceiverThread ..<init>(MulticastKeepaliveHeartbeatReceiver.java:103) at net ..sf ..ehcache ..distribution ..MulticastKeepaliveHeartbeatReceiver ..init(MulticastKeepaliveHeartbeatReceiver.java:79) at net ..sf ..ehcache ..distribution ..MulticastRMICacheManagerPeerProvider ..init(MulticastRMICacheManagerPeerProvider.java:89) at net.sf.ehcache.CacheManager.init(CacheManager.java:228) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:212) at net.sf.ehcache.CacheManager.create(CacheManager.java:381) at net ..sf ..ehcache ..hibernate ..SingletonEhCacheProvider.start(SingletonEhCacheProvider.java:123) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java: 183) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java: 1300) at org ..hibernate ..cfg ..AnnotationConfiguration ..buildSessionFactory(AnnotationConfiguration.java:859) at org ..hibernate ..ejb ..Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) at org ..hibernate ..ejb ..HibernatePersistence ..createContainerEntityManagerFactory(HibernatePersistence.java:132) at org ..springframework ..orm ..jpa ..LocalContainerEntityManagerFactoryBean ..createNativeEntityManagerFactory (LocalContainerEntityManagerFactoryBean.java:224) at org ..springframework ..orm ..jpa ..AbstractEntityManagerFactoryBean ..afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291) at org ..springframework ..beans ..factory ..support ..AbstractAutowireCapableBeanFactory ..invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org ..springframework ..beans ..factory ..support ..AbstractAutowireCapableBeanFactory ..initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 64 more

Hi, I' getting the same error with 0.9.10, slf4j 1.5.5 under tomcat 6 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.NullPointerException at java.util.HashMap.<init>(HashMap.java:223) at org.slf4j.impl.CopyOnInheritThreadLocal.childValue(CopyOnInheritThreadLocal.java:20) at org.slf4j.impl.CopyOnInheritThreadLocal.childValue(CopyOnInheritThreadLocal.java:11) at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:334) at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:242) at java.lang.ThreadLocal.createInheritedMap(ThreadLocal.java:217) at java.lang.Thread.init(Thread.java:360) at java.lang.Thread.<init>(Thread.java:463) at org.apache.catalina.core.ContainerBase.threadStart(ContainerBase.java:1538) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1056) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) On Tue, Oct 28, 2008 at 8:27 AM, Gianni Doe <gdoe6545@yahoo.it> wrote:
Just tried 0.9.10 with slf4j 1.5.5 and I get the following exception, reverting to 0.9.9 + slf4j 1.5.5 it works fine.
Not quite sure what's happening here but if there's any extra info I can provide...
Caused by: java.lang.NullPointerException at java.util.HashMap.<init>(HashMap.java:223) at org ..slf4j ..impl ..CopyOnInheritThreadLocal.childValue(CopyOnInheritThreadLocal.java:20) at org ..slf4j ..impl ..CopyOnInheritThreadLocal.childValue(CopyOnInheritThreadLocal.java:11) at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:334) at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:242) at java.lang.ThreadLocal.createInheritedMap(ThreadLocal.java:217) at java.lang.Thread.init(Thread.java:358) at java.lang.Thread.<init>(Thread.java:419) at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver $ MulticastReceiverThread ..<init>(MulticastKeepaliveHeartbeatReceiver.java:103) at net ..sf ..ehcache ..distribution ..MulticastKeepaliveHeartbeatReceiver ..init(MulticastKeepaliveHeartbeatReceiver.java:79) at net ..sf ..ehcache ..distribution ..MulticastRMICacheManagerPeerProvider ..init(MulticastRMICacheManagerPeerProvider.java:89) at net.sf.ehcache.CacheManager.init(CacheManager.java:228) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:212) at net.sf.ehcache.CacheManager.create(CacheManager.java:381) at net ..sf ..ehcache ..hibernate ..SingletonEhCacheProvider.start(SingletonEhCacheProvider.java:123) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java: 183) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java: 1300) at org ..hibernate ..cfg ..AnnotationConfiguration ..buildSessionFactory(AnnotationConfiguration.java:859) at org ..hibernate ..ejb ..Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) at org ..hibernate ..ejb ..HibernatePersistence ..createContainerEntityManagerFactory(HibernatePersistence.java:132) at org ..springframework ..orm ..jpa ..LocalContainerEntityManagerFactoryBean ..createNativeEntityManagerFactory (LocalContainerEntityManagerFactoryBean.java:224) at org ..springframework ..orm ..jpa ..AbstractEntityManagerFactoryBean ..afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291) at org ..springframework ..beans ..factory ..support ..AbstractAutowireCapableBeanFactory ..invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org ..springframework ..beans ..factory ..support ..AbstractAutowireCapableBeanFactory ..initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 64 more
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user

Thank you Gianni for your report. Issue fixed in 0.9.11 which was just released. Gianni Doe wrote:
Just tried 0.9.10 with slf4j 1.5.5 and I get the following exception, reverting to 0.9.9 + slf4j 1.5.5 it works fine. -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch
participants (4)
-
Ceki Gulcu
-
ekkehard
-
Gianni Doe
-
Yannick Haudry