ABPCMS.Web/Global.asax.cs
(完整代码) 963Busing System;
using System.Threading;
using Abp.Castle.Logging.Log4Net;
using Abp.Web;
using Abp.WebApi.Validation;
using Castle.Facilities.Logging;
using System.Web.Mvc;
using System.Web.Routing;
using Hangfire.Logging;
using ABPCMS.Web.App_Start;
namespace ABPCMS.Web
{
public class MvcApplication : AbpWebApplication<ABPCMSWebModule>
{
protected override void Application_Start(object sender, EventArgs e)
{
//AreaRegistration.RegisterAllAreas();
//RouteConfig.RegisterRoutes(RouteTable.Routes);
//LogProvider.SetCurrentLogProvider(new TextBufferLogProvider());
//TextBuffer.WriteLine("Application started.");
AbpBootstrapper.IocManager.IocContainer.AddFacility<LoggingFacility>(
f => f.UseAbpLog4Net().WithConfig(Server.MapPath("log4net.config"))
);
base.Application_Start(sender, e);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
