Skip to content

Commit 883ce33

Browse files
committed
Resolved #9: Use Abp.Castle.Log4Net package for logging.
1 parent 59a8d5d commit 883ce33

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/AbpCompanyName.AbpProjectName.Web/Startup/Startup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using Abp.AspNetCore;
3+
using Abp.Castle.Logging.Log4Net;
34
using Abp.EntityFrameworkCore;
45
using AbpCompanyName.AbpProjectName.EntityFrameworkCore;
56
using Castle.Facilities.Logging;
@@ -27,7 +28,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
2728
{
2829
//Configure Log4Net logging
2930
options.IocManager.IocContainer.AddFacility<LoggingFacility>(
30-
f => f.UseLog4Net().WithConfig("log4net.config")
31+
f => f.UseAbpLog4Net().WithConfig("log4net.config")
3132
);
3233
});
3334
}

src/AbpCompanyName.AbpProjectName.Web/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"dependencies": {
33
"AbpCompanyName.AbpProjectName.Application": "1.0.0.0-*",
44
"AbpCompanyName.AbpProjectName.EntityFrameworkCore": "1.0.0.0-*",
5-
"Castle.Windsor-log4net": "3.3.0",
65
"Castle.LoggingFacility.MsLogging": "1.0.0",
76
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
87
"Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "1.0.0",
@@ -31,7 +30,8 @@
3130
"version": "1.0.0-preview2-final",
3231
"type": "build"
3332
},
34-
"Abp.AspNetCore": "0.11.0.2"
33+
"Abp.AspNetCore": "0.11.0.2",
34+
"Abp.Castle.Log4Net": "0.11.0.2"
3535
},
3636

3737
"tools": {

0 commit comments

Comments
 (0)