diff --git a/lib/Castle Windsor 2.0/bin/Castle.Services.Logging.Log4netIntegration.dll b/lib/Castle Windsor 2.0/bin/Castle.Services.Logging.Log4netIntegration.dll
new file mode 100644
index 000000000..be7776603
Binary files /dev/null and b/lib/Castle Windsor 2.0/bin/Castle.Services.Logging.Log4netIntegration.dll differ
diff --git a/lib/Castle Windsor 2.0/bin/Castle.Services.Logging.Log4netIntegration.xml b/lib/Castle Windsor 2.0/bin/Castle.Services.Logging.Log4netIntegration.xml
new file mode 100644
index 000000000..97272be8e
--- /dev/null
+++ b/lib/Castle Windsor 2.0/bin/Castle.Services.Logging.Log4netIntegration.xml
@@ -0,0 +1,59 @@
+
+
+
+ Castle.Services.Logging.Log4netIntegration
+
+
+
+
+ Creates a new extended logger.
+
+
+
+
+ Creates a new extended logger.
+
+
+
+
+ Exposes the Global Context of the extended logger.
+
+
+
+
+ Exposes the Thread Context of the extended logger.
+
+
+
+
+ Exposes the Thread Stack of the extended logger.
+
+
+
+
+ Gets or sets the value of a property
+
+
+ The value for the property with the specified key
+
+
+
+ Gets or sets the value of a property
+
+
+
+
+
+ Gets or sets the value of a property
+
+
+ The value for the property with the specified key
+
+
+
+ Gets or sets the value of a property
+
+
+
+
+
diff --git a/src/Orchard.Web/Config/Diagnostics.config b/src/Orchard.Web/Config/Diagnostics.config
deleted file mode 100644
index ee34eaabf..000000000
--- a/src/Orchard.Web/Config/Diagnostics.config
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Orchard.Web/Config/log4net.config b/src/Orchard.Web/Config/log4net.config
new file mode 100644
index 000000000..8c33f623c
--- /dev/null
+++ b/src/Orchard.Web/Config/log4net.config
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Orchard.Web/Orchard.Web.csproj b/src/Orchard.Web/Orchard.Web.csproj
index 7af3dfcab..e8644e82d 100644
--- a/src/Orchard.Web/Orchard.Web.csproj
+++ b/src/Orchard.Web/Orchard.Web.csproj
@@ -124,6 +124,7 @@
Global.asax
+
@@ -150,11 +151,6 @@
Orchard.Core
-
-
- Designer
-
-
diff --git a/src/Orchard.Web/Web.config b/src/Orchard.Web/Web.config
index 1fc277b46..653221a2a 100644
--- a/src/Orchard.Web/Web.config
+++ b/src/Orchard.Web/Web.config
@@ -13,12 +13,14 @@
+
+
+
-
diff --git a/src/Orchard/Logging/LoggingModule.cs b/src/Orchard/Logging/LoggingModule.cs
index 28bd26b70..bf3528460 100644
--- a/src/Orchard/Logging/LoggingModule.cs
+++ b/src/Orchard/Logging/LoggingModule.cs
@@ -5,8 +5,7 @@ using System.Linq;
using System.Reflection;
using Autofac;
using Autofac.Core;
-using Castle.Core.Logging;
-using Orchard.Environment;
+using Castle.Services.Logging.Log4netIntegration;
using Module = Autofac.Module;
namespace Orchard.Logging {
@@ -21,16 +20,7 @@ namespace Orchard.Logging {
protected override void Load(ContainerBuilder moduleBuilder) {
// by default, use Orchard's logger that delegates to Castle's logger factory
moduleBuilder.RegisterType().As().InstancePerLifetimeScope();
-
- moduleBuilder.Register(componentContext => {
- IHostEnvironment host = componentContext.Resolve();
- if (host.IsFullTrust)
- return new TraceLoggerFactory();
- return new NullLogFactory();
- })
- .As()
- .InstancePerLifetimeScope();
-
+ moduleBuilder.RegisterType().As().InstancePerLifetimeScope();
// call CreateLogger in response to the request for an ILogger implementation
moduleBuilder.Register(CreateLogger).As().InstancePerDependency();
diff --git a/src/Orchard/Orchard.Framework.csproj b/src/Orchard/Orchard.Framework.csproj
index a8350ed09..f3d8e28a5 100644
--- a/src/Orchard/Orchard.Framework.csproj
+++ b/src/Orchard/Orchard.Framework.csproj
@@ -77,6 +77,9 @@
False
..\..\lib\Castle Windsor 2.0\bin\Castle.DynamicProxy2.dll
+
+ ..\..\lib\Castle Windsor 2.0\bin\Castle.Services.Logging.Log4netIntegration.dll
+
False
..\..\lib\claysharp\ClaySharp.dll
@@ -89,6 +92,10 @@
False
..\..\lib\sharpziplib\ICSharpCode.SharpZipLib.dll
+
+ False
+ ..\..\lib\fluentnhibernate\log4net.dll
+
..\..\lib\aspnetmvc\Microsoft.Web.Infrastructure.dll