-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from difi/common_logging
Fra Log4net til Common logging
- Loading branch information
Showing
23 changed files
with
168 additions
and
91 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
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
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
3 changes: 0 additions & 3 deletions
3
Difi.Oppslagstjeneste.Klient.Tester/Properties/AssemblyInfo.log4net.cs
This file was deleted.
Oops, something went wrong.
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,9 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="api-client-shared" version="1.0.5941.27271" targetFramework="net45" /> | ||
<package id="Common.Logging" version="3.3.1" targetFramework="net45" /> | ||
<package id="Common.Logging.Core" version="3.3.1" targetFramework="net45" /> | ||
<package id="CompareNETObjects" version="3.04.0.0" targetFramework="net45" /> | ||
<package id="CompareObjects" version="1.0.2" targetFramework="net45" /> | ||
<package id="difi-felles-utility-dotnet" version="0.5.5970.18522" targetFramework="net45" /> | ||
<package id="log4net" version="2.0.4" targetFramework="net45" /> | ||
<package id="Moq" version="4.2.1510.2205" targetFramework="net45" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<configSections> | ||
<sectionGroup name="common"> | ||
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" /> | ||
</sectionGroup> | ||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> | ||
</configSections> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | ||
</startup> | ||
<common> | ||
<logging> | ||
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net1213"> | ||
<arg key="configType" value="INLINE" /> | ||
</factoryAdapter> | ||
<!--<factoryAdapter type="Common.Logging.Simple.ConsoleOutLoggerFactoryAdapter, Common.Logging"> | ||
<arg key="level" value="ALL" /> | ||
<arg key="showLogName" value="false" /> | ||
<arg key="showDataTime" value="false" /> | ||
<arg key="dateTimeFormat" value="yyyy/MM/dd HH:mm:ss:fff" /> | ||
</factoryAdapter>--> | ||
</logging> | ||
</common> | ||
|
||
<log4net> | ||
<logger name="Difi.Oppslagstjeneste.Klient"> | ||
<appender-ref ref="RollingFileAppender" /> | ||
<level value="DEBUG" /> | ||
</logger> | ||
<logger name="Difi.Oppslagstjeneste.RequestLog"> | ||
<appender-ref ref="RequestRollingAppender" /> | ||
<level value="DEBUG" /> | ||
</logger> | ||
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> | ||
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" /> | ||
<file value="${AppData}\Difi\Log\" /> | ||
<appendToFile value="true" /> | ||
<rollingStyle value="Date" /> | ||
<staticLogFileName value="false" /> | ||
<rollingStyle value="Composite" /> | ||
<param name="maxSizeRollBackups" value="10" /> | ||
<datePattern value="yyyy.MM.dd' Difi.Oppslagstjeneste-klient-dotnet.log'" /> | ||
<maximumFileSize value="100MB" /> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<conversionPattern value="%date [%thread] %-5lev - %message%newline" /> | ||
</layout> | ||
</appender> | ||
<appender name="RequestRollingAppender" type="log4net.Appender.RollingFileAppender"> | ||
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" /> | ||
<file value="${AppData}\Difi\RequestLog\" /> | ||
<appendToFile value="true" /> | ||
<rollingStyle value="Date" /> | ||
<staticLogFileName value="false" /> | ||
<rollingStyle value="Composite" /> | ||
<param name="maxSizeRollBackups" value="10" /> | ||
<datePattern value="yyyy.MM.dd' Difi.Oppslagstjeneste-klient-dotnet.log'" /> | ||
<maximumFileSize value="100MB" /> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<conversionPattern value="%date [%thread] %-5lev - %message%newline" /> | ||
</layout> | ||
</appender> | ||
</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
3 changes: 0 additions & 3 deletions
3
Difi.Oppslagstjeneste.Klient.Testklient/Properties/AssemblyInfo.log4net.cs
This file was deleted.
Oops, something went wrong.
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,5 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="CompareObjects" version="1.0.2" targetFramework="net45" /> | ||
<package id="log4net" version="2.0.4" targetFramework="net45" /> | ||
<package id="Common.Logging" version="3.3.1" targetFramework="net45" /> | ||
<package id="Common.Logging.Core" version="3.3.1" targetFramework="net45" /> | ||
<package id="Common.Logging.Log4Net1213" version="3.3.1" targetFramework="net45" /> | ||
<package id="log4net" version="2.0.3" targetFramework="net45" /> | ||
</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
Oops, something went wrong.