<?xml version="1.0"?>
<log4net>
  
  <root>
    <priority value="Info"/>
    <appender-ref ref="AsynchronousLog4NetAppender" />
  </root>
  
  <appender name="rollingFile" type="log4net.Appender.RollingFileAppender">
	  <file type="log4net.Util.PatternString" value="App_Data\Logs\UmbracoTraceLog.%property{log4net:HostName}.txt" />
    <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
    <appendToFile value="true" />
    <rollingStyle value="Date" />
    <maximumFileSize value="5MB" />
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value=" %date [P%property{processId}/D%property{appDomainId}/T%thread] %-5level %logger - %message%newline" />
    </layout>
    <encoding value="utf-8" />
  </appender>

  <appender name="AsynchronousLog4NetAppender" type="Umbraco.Core.Logging.ParallelForwardingAppender,Umbraco.Core">
    <appender-ref ref="rollingFile" />
  </appender>
  <!--Here you can change the way logging works for certain namespaces  -->

  <logger name="NHibernate">
    <level value="WARN" />
  </logger>
  
  <logger name="umbraco.macro">
    <level value="WARN" />
  </logger>

  <!-- Suppress: "WARN  Umbraco.Web.Mvc.RenderRouteHandler - The current Document Type Project matches a locally declared controller of type 
       OurUmbraco.Our.Controllers.ProjectController. Custom Controllers for Umbraco routing must implement 
       'Umbraco.Web.Mvc.IRenderController' and inherit from 'System.Web.Mvc.ControllerBase'." -->
  <logger name="Umbraco.Web.Mvc.RenderRouteHandler">
    <level value="OFF" />
  </logger>

  <!-- Suppress: "System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.QueryString value was detected 
       from the client (aspxerrorpath="...aco/help/"<a href=")." -->
  <logger name="System.Web.HttpRequestValidationException">
    <level value="OFF" />
  </logger>
  
</log4net>