|
From: Erich E. <eei...@gm...> - 2009-01-16 02:47:05
|
The signed preview build for the upcoming version 2.0 of Common.Logging is ready for download at <http://www.springframework.net/downloads/netcommon/> What's new? ----------- - added support for EntLib 4.1 logging - extended ILog interface now includes XXXFormat( string format, params object[] args ) signatures - leveraging lambdas, the ILog interface offers a new & safe way to write log statements: log.Debug( m=>m("value= {0}", obj.Value) ); this ensures, that the whole expression is only evaluated when LogLevel.Debug is enabled and thus saves you from writing if (log.IsDebugEnabled) { log.Debug("value={0}", obj.Value); } to avoid this overhead. Upgrading --------- All that's necessary for upgrading from 1.2 is copy the new assemblies in place and specifying a version redirect. Recompiling your application of course links your app to the new version w/o a redirect. 2.0 runtime (Common.Logging.dll) is fully binary backwards compatible. Note to implementors of the ILog interface: Due to the extensions, you need to extend your implementations as well. As an added benefit, 2.0 comes with some convenience classes, making it easy to implement your own log system integration. Check out AbstractLogger and AbstractSimpleLogger for more information. Spring.NET ---------- I removed the dependency of Spring and it's SPI implementation of ILog for testing purposes, thus compiling & testing the codebase against the new version is no issue anymore starting with the next nightly build of Spring.NET Give the new version a whirl and please send your feedback! enjoy, Erich |