-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f02db6
commit aa49608
Showing
6 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<log4net> | ||
<root> | ||
<level value="ALL" /> | ||
<appender-ref ref="console" /> | ||
<appender-ref ref="file" /> | ||
</root> | ||
<appender name="console" type="log4net.Appender.ConsoleAppender"> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<conversionPattern value="%date %level %logger - %message%newline" /> | ||
</layout> | ||
</appender> | ||
<appender name="file" type="log4net.Appender.RollingFileAppender"> | ||
<!--Filename prefix with relative or absolute path--> | ||
<file value=".\Logs\Log" /> | ||
<!--Append to the file i.e no overwritten--> | ||
<appendToFile value="true" /> | ||
<!--Composite, support for both RollingStyle.Date & RollingStyle.Size--> | ||
<rollingStyle value="Composite" /> | ||
<!--Always roll once per day--> | ||
<datePattern value="'_'yyyyMMdd'.log'" /> | ||
<!--Also roll if size exceeds max size--> | ||
<maximumFileSize value="300MB"/> | ||
<!--Infinite backups i.e no deletion--> | ||
<maxSizeRollBackups value="-1"/> | ||
<!--Positive count direction, eg: log.1 is the first backup, log.5 is the most recent--> | ||
<CountDirection value="1"/> | ||
<!--Preserve filename extension--> | ||
<preserveLogFileNameExtension value="true" /> | ||
<!--True if file name is static--> | ||
<staticLogFileName value="false" /> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" /> | ||
</layout> | ||
<threshold value="INFO" /> | ||
</appender> | ||
</log4net> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters