Exemplo n.º 1
0
        private static void InitialiseLog4Net(HttpApplication application)
        {
            string machineName = application.Server.MachineName;

            if (!string.IsNullOrEmpty(machineName))
            {
                AppLogger.AddGlobalCustomParameter("server", machineName);
            }
            AppLogger.InitialiseFromConfig("DEFAULT");
            AppLogger.LogDebugMessage("log4Net has been initialised.");
        }