Exemplo n.º 1
0
 /// <summary>
 /// Initializes the log4net.
 /// </summary>
 private void InitializeLog4Net()
 {
     using (var stream = ResourceUtility.GetResourceAsStream("log4net.config"))
     {
         log4net.Config.XmlConfigurator.Configure(stream);
     }
     log4net.GlobalContext.Properties["process"] = HtmlUiRuntime.ApplicationType == ApplicationType.Application ? "MAIN" : "RENDER";
 }