Skip to content

Instantly share code, notes, and snippets.

@nikhilsinha
Created April 15, 2020 02:12
Show Gist options
  • Save nikhilsinha/39548c2481507aeeea6a2f750e7dd24f to your computer and use it in GitHub Desktop.
Save nikhilsinha/39548c2481507aeeea6a2f750e7dd24f to your computer and use it in GitHub Desktop.
<log4net>
<root>
<level value="ALL" />
<appender-ref ref="file" />
</root>
<appender name="file" type="log4net.Appender.RollingFileAppender">
<file type="log4net.Util.PatternString" value="%envFolderPath{MyDocuments}\NWESG\GameLogs\log-%property{ATimeStamp}.log" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="5" />
<maximumFileSize value="50MB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %level %logger - %message%newline" />
</layout>
</appender>
</log4net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment