-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Log4Net support for all demo apps.
- Loading branch information
1 parent
9d57fdd
commit edd6de6
Showing
9 changed files
with
107 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<configSections> | ||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> | ||
</configSections> | ||
<log4net> | ||
<!-- Setup Description: http://stackoverflow.com/questions/8138072/log4net-file-appender-not-logging --> | ||
<!-- Ouput log information in XML readable format for Log4Net XML LogViewer (Open Source From Codeplex | ||
http://yourlog4netviewer.codeplex.com/ | ||
--> | ||
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> | ||
<file type="log4net.Util.PatternString" value="${TMP}\AvalonDock.TestApp_Log.log4j" /> | ||
<!-- threshold value="DEBUG" / --> | ||
<appendToFile value="false" /> | ||
<datePattern value="yyyyMMdd" /> | ||
<rollingStyle value="Date" /> | ||
<layout type="log4net.Layout.XmlLayoutSchemaLog4j"> | ||
<locationInfo value="true" /> | ||
</layout> | ||
</appender> | ||
|
||
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender"> | ||
<!-- threshold value="WARN" / --> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<param name="Header" value="[Header]\r\n" /> | ||
<param name="Footer" value="[Footer]\r\n" /> | ||
<param name="ConversionPattern" value="%d [%t] %-5p %c %m%n" /> | ||
</layout> | ||
</appender> | ||
|
||
<root> | ||
<!-- Levels: Off, Fatal, Error, Warn, Info, Debug, All --> | ||
<level value="All" /> | ||
<appender-ref ref="RollingFileAppender" /> | ||
<!-- appender-ref ref="ConsoleAppender"/ --> | ||
</root> | ||
</log4net> | ||
|
||
</configuration> |
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="log4net" version="2.0.8" targetFramework="net40-client" /> | ||
</packages> |
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
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="log4net" version="2.0.8" targetFramework="net40-client" /> | ||
</packages> |