File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/AbpCompanyName.AbpProjectName.Web Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using Abp . AspNetCore ;
3
+ using Abp . Castle . Logging . Log4Net ;
3
4
using Abp . EntityFrameworkCore ;
4
5
using AbpCompanyName . AbpProjectName . EntityFrameworkCore ;
5
6
using Castle . Facilities . Logging ;
@@ -27,7 +28,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
27
28
{
28
29
//Configure Log4Net logging
29
30
options . IocManager . IocContainer . AddFacility < LoggingFacility > (
30
- f => f . UseLog4Net ( ) . WithConfig ( "log4net.config" )
31
+ f => f . UseAbpLog4Net ( ) . WithConfig ( "log4net.config" )
31
32
) ;
32
33
} ) ;
33
34
}
Original file line number Diff line number Diff line change 2
2
"dependencies" : {
3
3
"AbpCompanyName.AbpProjectName.Application" : " 1.0.0.0-*" ,
4
4
"AbpCompanyName.AbpProjectName.EntityFrameworkCore" : " 1.0.0.0-*" ,
5
- "Castle.Windsor-log4net" : " 3.3.0" ,
6
5
"Castle.LoggingFacility.MsLogging" : " 1.0.0" ,
7
6
"Microsoft.AspNetCore.Diagnostics" : " 1.0.0" ,
8
7
"Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" : " 1.0.0" ,
31
30
"version" : " 1.0.0-preview2-final" ,
32
31
"type" : " build"
33
32
},
34
- "Abp.AspNetCore" : " 0.11.0.2"
33
+ "Abp.AspNetCore" : " 0.11.0.2" ,
34
+ "Abp.Castle.Log4Net" : " 0.11.0.2"
35
35
},
36
36
37
37
"tools" : {
You can’t perform that action at this time.
0 commit comments