[SPRNET-1247] Update to use Common.Logging 2.0 Created: 04/Aug/09  Updated: 10/May/12  Resolved: 10/May/12

Status: Resolved
Project: Spring.NET
Component/s: None
Affects Version/s: 1.3.0 RC1
Fix Version/s: 2.0 M1

Type: Improvement Priority: Major
Reporter: Tobi Tobsen Assignee: Steve Bohlen
Resolution: Fixed Votes: 5
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently Spring.net is compiled to version 1.2 of the http://netcommon.sourceforge.net/ common logging Framework. Recently 2.0 has been released. Please compile against the latest version so users won't have to add assembly redirects to their configs if they want to use CommonLogging 2.0 (and it's neat log.Debug( m=>m("value=

{0}

", obj.Value) ); syntax) in their projects.



 Comments   
Comment by Uwe S├╝dbeck [ 24/Sep/09 ]

Is there progress on this issue? It would be great to get rid of that redirects. Thanks for any comments or informations about a first timeline for this ticket.

Comment by Mark Pollack [ 24/Sep/09 ]

This will be done as part of the Spring.NET 2.0 release cycle, which will be early next year. Sorry for the inconvenience until then.

Comment by Mark Pollack [ 24/Sep/09 ]

We also need Quartz.NET to update and also by that time I suspect that NHibernate may become Commons.Logging users too.

Comment by Charles Cai [ 19/Jan/11 ]

Add this to app.config to use Common.Logging 2.0 with Spring 1.3.x

<?xml version="1.0"?>
<configuration>

<runtime>
<bypassTrustedAppStrongNames enabled="true"/>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e"/>
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="2.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>

...

Comment by simone basso [ 05/Dec/11 ]

Charles, your solution trigger this problem when using WebSupportModule:

Method 'TraceFormat' in type 'Common.Logging.Log4Net.Log4NetLogger' from assembly 'Common.Logging.Log4Net, Version=1.2.0.2, Culture=neutral, PublicKeyToken=af08829b84f0328e' does not have an implementation.

Comment by Steve Bohlen [ 10/May/12 ]

Updated bin refs and changed several dependent types in tests.

Generated at Wed Jul 17 23:41:45 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.