-
Notifications
You must be signed in to change notification settings - Fork 18
NLog upgraded from 2.0 to 2.1 - #8 #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,15 @@ | ||
<?xml version="1.0"?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<configSections> | ||
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/> | ||
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" /> | ||
</configSections> | ||
<nlog> | ||
<targets> | ||
<target name="console" type="Console" | ||
layout="${message}" | ||
/> | ||
<target name="file" type="AsyncWrapper" | ||
queueLimit="5000" | ||
overflowAction="Discard"> | ||
<target type="File" | ||
fileName="${basedir}/logs/this.Log-NLog.Sample.log" | ||
layout="${longdate} ${threadid} [${level:uppercase=true}] ${message}" | ||
/> | ||
<target name="console" type="Console" layout="${message}" /> | ||
<target name="file" type="AsyncWrapper" queueLimit="5000" overflowAction="Discard"> | ||
<target type="File" fileName="${basedir}/logs/this.Log-NLog.Sample.log" layout="${longdate} ${threadid} [${level:uppercase=true}] ${message}" /> | ||
</target> | ||
<target name="errorSmtp" type="Mail" | ||
layout="${longdate} ${threadid} [${level:uppercase=true}] ${logger} - ${message}" | ||
subject="this.Log Sample Console Errors - LOCAL DEBUG" | ||
to="[email protected]" | ||
from="[email protected]" | ||
smtpServer="localhost" | ||
/> | ||
<target name="errorSmtp" type="Mail" layout="${longdate} ${threadid} [${level:uppercase=true}] ${logger} - ${message}" subject="this.Log Sample Console Errors - LOCAL DEBUG" to="[email protected]" from="[email protected]" smtpServer="localhost" /> | ||
</targets> | ||
|
||
<rules> | ||
|
@@ -32,6 +19,14 @@ | |
</rules> | ||
</nlog> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /> | ||
</startup> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A little disconcerting that this binding redirect was necessary though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rob, I can't comment on necessity, I basically just nugetted the 2.1 lib On 22 January 2014 07:12, Rob Reynolds [email protected] wrote:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No worries, I'll see what's up. |
||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NLog" version="2.0.0.2000" targetFramework="net40" /> | ||
<package id="NLog" version="2.1.0" targetFramework="net40" /> | ||
<package id="this.Log" version="0.0.2.0" targetFramework="net40" /> | ||
<package id="this.Log-NLog" version="0.0.2.0" targetFramework="net40" /> | ||
</packages> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,15 @@ | ||
<?xml version="1.0"?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<configSections> | ||
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/> | ||
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" /> | ||
</configSections> | ||
<nlog> | ||
<targets> | ||
<target name="console" type="Console" | ||
layout="${message}" | ||
/> | ||
<target name="file" type="AsyncWrapper" | ||
queueLimit="5000" | ||
overflowAction="Discard"> | ||
<target type="File" | ||
fileName="${basedir}/logs/this.Log-NLog.Sample.log" | ||
layout="${longdate} ${threadid} [${level:uppercase=true}] ${message}" | ||
/> | ||
<target name="console" type="Console" layout="${message}" /> | ||
<target name="file" type="AsyncWrapper" queueLimit="5000" overflowAction="Discard"> | ||
<target type="File" fileName="${basedir}/logs/this.Log-NLog.Sample.log" layout="${longdate} ${threadid} [${level:uppercase=true}] ${message}" /> | ||
</target> | ||
<target name="errorSmtp" type="Mail" | ||
layout="${longdate} ${threadid} [${level:uppercase=true}] ${logger} - ${message}" | ||
subject="this.Log Sample Console Errors - LOCAL DEBUG" | ||
to="[email protected]" | ||
from="[email protected]" | ||
smtpServer="localhost" | ||
/> | ||
<target name="errorSmtp" type="Mail" layout="${longdate} ${threadid} [${level:uppercase=true}] ${logger} - ${message}" subject="this.Log Sample Console Errors - LOCAL DEBUG" to="[email protected]" from="[email protected]" smtpServer="localhost" /> | ||
</targets> | ||
|
||
<rules> | ||
|
@@ -32,6 +19,14 @@ | |
</rules> | ||
</nlog> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /> | ||
</startup> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NLog" version="2.0.0.2000" targetFramework="net40" /> | ||
<package id="NLog" version="2.1.0" targetFramework="net40" /> | ||
<package id="this.Log" version="0.0.2.0" targetFramework="net40" /> | ||
<package id="this.Log-NLog" version="0.0.2.0" targetFramework="net40" /> | ||
</packages> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NLog" version="2.0.0.2000" targetFramework="net40" /> | ||
<package id="NLog" version="2.1.0" targetFramework="net40" /> | ||
</packages> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did anything change here or was it just nuget doing the same crap, different day in reformatting my .config files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure It was just a XML reformat. I probably shouldn't of committed
it, sorry.
On 22 Jan 2014 02:38, "Rob Reynolds" [email protected] wrote:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I can rip it back out.