title: What do you have in your log4net config? Hacks, optimizations, observations?
body: <p>This is my log4net config file     </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;log4net debug="true"&gt;
    &lt;appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender" &gt;
      &lt;filter type="log4net.Filter.LevelRangeFilter"&gt;
        &lt;acceptOnMatch value="true" /&gt;
        &lt;levelMin value="DEBUG" /&gt;
        &lt;levelMax value="FATAL" /&gt;
      &lt;/filter&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%-5p %5rms [%-17.17t] %-22.22c{1} %-18.18M - %m%n" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
  
    &lt;appender name="SmtpAppender" type="MySmtpClientSmtpAppender"&gt;
      &lt;to value="a@a.com" /&gt;
      &lt;from value="admin@x.com" /&gt;
      &lt;subject value="Game Server Monitoring Failed!" /&gt;
      &lt;smtpHost value="smtp.x.com" /&gt;
      &lt;username value="admin" /&gt;
      &lt;password value="x" /&gt;
      &lt;bufferSize value="256" /&gt;
      &lt;lossy value="true" /&gt;
      &lt;evaluator type="log4net.spi.LevelEvaluator"&gt;
        &lt;threshold value="ERROR" /&gt;
      &lt;/evaluator&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%-5p %d [ThreadId: %t] Class:%c{1} Method:%M %nMESSAGE:%n%m%n%n" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
  
    &lt;appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
      &lt;file value="Logs\\wwwlog" /&gt;
      &lt;appendToFile value="true" /&gt;
      &lt;datePattern value="yyyyMMdd" /&gt;
      &lt;maximumFileSize value="10MB" /&gt;
      &lt;!--&lt;rollingStyle value="Date" /&gt;--&gt;
      &lt;filter type="log4net.Filter.LevelRangeFilter"&gt;
        &lt;acceptOnMatch value="true" /&gt;
        &lt;levelMin value="INFO" /&gt;
        &lt;levelMax value="FATAL" /&gt;
      &lt;/filter&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
  
  
    &lt;root&gt;
      &lt;level value="DEBUG" /&gt;
      &lt;appender-ref ref="ConsoleAppender" /&gt;
      &lt;appender-ref ref="MySmtpAppender" /&gt;
      &lt;appender-ref ref="RollingLogFileAppender" /&gt;
    &lt;/root&gt;
  &lt;/log4net&gt;
  </code></pre>
  
  <p>Am I missing anything? Any tips/ advice to decrease log size while maintaining clarity, better conversion patterns? Any interesting hacks? </p>
  
  <p>Edit: XMl file didnt get into the code block.Updating. Any sugggestions?</p>