# LogUtil **Repository Path**: dayrl/LogUtil ## Basic Information - **Project Name**: LogUtil - **Description**: No description available - **Primary Language**: C# - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-22 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LogUtil # How To Use in you Global.asax.cs Application_Start Method add the code below protected void Application_Start() { //todo other init stuff //start the log thread APILogManager.Instance.Initialize(Server.MapPath("~/config/LogConfig.xml"), Server.MapPath("~/log/")); APILog.Kernel.LogError("Failed to initialize log manager"); } then exit: protected void Application_End(object sender, EventArgs e) { APILog.Kernel.LogInfo("Application_End"); APILogManager.Instance.Exit(); }