Updating logger to split into levels depending on namespace, to autoflush and also to update log levels on build for azure or CI.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-12-07 15:24:43 -08:00
parent bf1c0e2589
commit 95841b5fbc
9 changed files with 35 additions and 30 deletions

View File

@@ -99,15 +99,19 @@
<XmlUpdate XmlFileName="$(CloudRootFolder)\web.config"
XPath="/configuration/system.web/compilation/@debug"
Value="false" />
<XmlUpdate XmlFileName="$(CloudRootFolder)\Config\Diagnostics.config"
XPath="/system.diagnostics/trace/@autoflush"
<XmlUpdate XmlFileName="$(CloudRootFolder)\Config\log4net.config"
XPath="/log4net/appender/immediateFlush/@value"
Value="false" />
<XmlUpdate XmlFileName="$(CloudRootFolder)\Config\Diagnostics.config"
XPath="/system.diagnostics/sources/source/@switchValue"
Value="Error" />
<XmlUpdate XmlFileName="$(CloudRootFolder)\Config\log4net.config"
XPath="/log4net/logger/priority/@value"
Value="ERROR" />
<XmlUpdate XmlFileName="$(CloudRootFolder)\Config\log4net.config"
XPath="/log4net/root/priority/@value"
Value="ERROR" />
<Copy
SourceFiles="$(SrcFolder)\Orchard.Azure\Orchard.Azure.CloudService\ServiceConfiguration.cscfg"
DestinationFolder="$(StageFolder)"