17 lines
444 B
C#
17 lines
444 B
C#
|
using Microsoft.Practices.Unity;
|
|||
|
using Portoa.Web.Unity;
|
|||
|
|
|||
|
namespace VideoGameQuotes.Web.Configuration {
|
|||
|
/// <summary>
|
|||
|
/// Enables application-wide logging using log4net
|
|||
|
/// </summary>
|
|||
|
public class EnableLogging : UnityContainerExtension {
|
|||
|
protected override void Initialize() {
|
|||
|
Container
|
|||
|
.AddNewExtension<ConfigureLog4Net>()
|
|||
|
.Configure<ILog4NetConfigurator>()
|
|||
|
.SetName("vgquotes")
|
|||
|
.UseXml();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|