forked from Azure-App-Service/KuduLite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Log4Net config for KuduConsole telemetry (Azure-App-Service#123)
- Loading branch information
1 parent
1698d0d
commit f26249f
Showing
2 changed files
with
33 additions
and
27 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<log4net> | ||
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender,log4net"> | ||
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/> | ||
<file type="log4net.Util.PatternString" value="/var/log/kudulogs/%utcdate{yyyy-MM-dd}_%env{COMPUTERNAME}_scm_console_docker.log" /> | ||
<param name="RollingStyle" value="Size"/> | ||
<param name="StaticLogFileName" value="true"/> | ||
<appendToFile value="true" /> | ||
<maxSizeRollBackups value="10"/> | ||
<maximumFileSize value="5MB"/> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<conversionPattern value="%date{yyyy-MM-dd-HH:mm:ss.fff} %message%n" /> | ||
</layout> | ||
</appender> | ||
<root> | ||
<level value="ALL"/> | ||
<appender-ref ref="RollingLogFileAppender"/> | ||
</root> | ||
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender,log4net"> | ||
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/> | ||
<file type="log4net.Util.PatternString" value="/var/log/kudulogs/%utcdate{yyyy-MM-dd}_%env{COMPUTERNAME}_scm_console_docker.log" /> | ||
<param name="RollingStyle" value="Size"/> | ||
<param name="StaticLogFileName" value="true"/> | ||
<appendToFile value="true" /> | ||
<maxSizeRollBackups value="10"/> | ||
<maximumFileSize value="5MB"/> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<conversionPattern value="%date{yyyy-MM-dd-HH:mm:ss.fff} %message%n" /> | ||
</layout> | ||
</appender> | ||
<root> | ||
<level value="ALL"/> | ||
<appender-ref ref="RollingLogFileAppender"/> | ||
</root> | ||
</log4net> |