From log4net-user-returnjosephwilliams@example.com Fri Jun 05 15:01:04 2009 Return-Path: <log4net-user-returnjosephwilliams@example.com> Delivered-To: josephwilliams@example.com Received: (qmail 85677 invoked from network); 5 Jun 2009 15:01:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jun 2009 15:01:04 -0000 Received: (qmail 39928 invoked by uid 500); 5 Jun 2009 15:01:15 -0000 Delivered-To: josephwilliams@example.com Received: (qmail 39859 invoked by uid 500); 5 Jun 2009 15:01:15 -0000 Mailing-List: contact josephwilliams@example.com; run by ezmlm Precedence: bulk list-help: <mailto:josephwilliams@example.com> list-unsubscribe: <mailto:josephwilliams@example.com> List-Post: <mailto:josephwilliams@example.com> Reply-To: "Log4NET User" <josephwilliams@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list josephwilliams@example.com Received: (qmail 39844 invoked by uid 99); 5 Jun 2009 15:01:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 15:01:15 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO p01c12o147.mxlogic.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 15:01:04 +0000 Received: from unknown [83.161.120.155] (EHLO weareitnt3.WeAreIT.local) by p01c12o147.mxlogic.net (mxl_mta-6.2.0-4) with ESMTP id 113392a4.2611735440.110439.00-063.p01c12o147.mxlogic.net (envelope-from <josephwilliams@example.com>); Fri, 05 Jun 2009 09:00:33 -0600 (MDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_reb-r45811F82-t4A29331C" Subject: How do I use dynamic boolean values on RollingFileAppender X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 5 Jun 2009 10:01:18 -0500 Message-ID: <josephwilliams@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How do I use dynamic boolean values on RollingFileAppender Thread-Index: Acnl7ns6Qolu6zuMSTiFr7RQCAG2dA== From: "Richard Fouts" <josephwilliams@example.com> To: <josephwilliams@example.com>, <josephwilliams@example.com> X-Processed-By: Rebuild v2.0-0 X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2009052001)] X-MAIL-FROM: <josephwilliams@example.com> X-SOURCE-IP: [83.161.120.155] X-AnalysisOut: [v=1.0 c=1 a=In3WCJ4IOd8A:10 a=Yw5u4SPj3_8A:10 a=hLrENRVrh+] X-AnalysisOut: [eA9tr480Ib5Q==:17 a=WP5zsaevAAAA:8 a=r5JWEyTZAAAA:8 a=NcsK] X-AnalysisOut: [34pLJVGdomx-31IA:9 a=t-8zM3cI_SmyJqrNHocA:7 a=EtO-JvkfTtmL] X-AnalysisOut: [INb_6cuIu0sMpPwA:4 a=WcdFFF8jZaIA:10 a=yMhMjlubAAAA:8 a=SS] X-AnalysisOut: [mOFEACAAAA:8 a=4D92k-eLPC7nXwATVTsA:9 a=Riq0QHBYg3Wx23Si_E] X-AnalysisOut: [IA:7 a=8dSruUnX0y8CVZlXJigLMA6BVkcA:4] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part MIME message. --=_reb-r45811F82-t4A29331C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have ran into a "small" brick wall. Hoping that I can find a couple of log4net guru's here. My situation. In trying to make my logging as configurable as possible in my application, I have been tinkering with trying to set the boolean values for appendToFile and staticLogFileName as dynamic values. These have a default value (currently stored in the My.Settings metadata). My problem is that when I go to configure the values at runtime I get this error in my stack trace: =20 =20 log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogFile] of type [log4net.Appender.RollingFileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(Ty pe type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlEl ement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlE lement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not found. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFile] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(Ty pe type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlEl ement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlE lement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not found. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogFile] of type [log4net.Appender.RollingFileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(Ty pe type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlEl ement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlE lement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not found. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFile] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(Ty pe type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlEl ement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlE lement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not found. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogFile] of type [log4net.Appender.RollingFileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(Ty pe type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlEl ement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlE lement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not found. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFile] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(Ty pe type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlEl ement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlE lement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not found. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogFile] of type [log4net.Appender.RollingFileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(Ty pe type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlEl ement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlE lement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not found. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFile] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(Ty pe type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlEl ement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlE lement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not found. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogFile] of type [log4net.Appender.RollingFileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(Ty pe type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlEl ement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlE lement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not found. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFile] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo(Ty pe type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(XmlEl ement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlE lement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not found. The way that I am configuring the values is by trying to use the code displayed here: =20 =09 'In Main Private Shared Log As ILog =20 Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load '[...] primeLogging() configLog4Net() Log =3D LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().Dec laringType) Log.Info("This is the start of the application.") End Sub =20 Private Sub primeLogging() If Not My.Settings.LogPath =3D "" Then _LogPath =3D My.Settings.LogPath Else _LogPath =3D My.Application.Info.DirectoryPath & "\Logs\" End If =20 '[...] =20 _MaxRollBacks =3D My.Settings.MaxRollBacks _MaxFileSize =3D My.Settings.MaxFileSize =20 _isAppendToFile =3D My.Settings.isAppendToFile _isStaticLogFile =3D My.Settings.isStaticLogFile End Sub =20 Private Sub configLog4Net() log4net.GlobalContext.Properties("LogPath") =3D _LogPath log4net.GlobalContext.Properties("LogName") =3D _LogName log4net.GlobalContext.Properties("RollStyle") =3D _tempRollStyle log4net.GlobalContext.Properties("MaxRollBacks") =3D _MaxRollBacks log4net.GlobalContext.Properties("MaxFileSize") =3D _MaxFileSize log4net.GlobalContext.Properties("isAppendToFile") =3D _isAppendToFile log4net.GlobalContext.Properties("isStaticLogFile") =3D _isStaticLogFile 'My attempts to cast as a boolean (did not work) =20 'log4net.Util.OptionConverter.ToBoolean(log4net.GlobalContext.Properties ("isAppendToFile"), _isAppendToFile) =20 'log4net.Util.OptionConverter.ToBoolean(log4net.GlobalContext.Properties ("isStaticLogFile"), _isStaticLogFile) End Sub =20 'In Log4Net.config (using a seperate configuration file for Log4Net) <?xml version=3D"1.0" encoding=3D"utf-8" ?> <configuration> <configSections> <section name=3D"log4net" type=3D"System.Configuration.IgnoreSectionHandler" /> </configSections> <appSettings> <!-- To enable internal log4net logging specify the following appSettings key --> <add key=3D"log4net.Internal.Debug" value=3D"true"/> </appSettings> <!-- This section contains the log4net configuration settings --> <log4net> <!-- Define some output appenders --> <appender name=3D"SyncLogFile" type=3D"log4net.Appender.RollingFileAppender"> <file type=3D"log4net.Util.PatternString" value=3D"%property{LogPath}\Syncronizations\%property{LogName}" /> <param name=3D"DatePattern" value=3D".yyyy-MM-dd-tt.log"/> <appendToFile value=3D"%property{isAppendToFile}" /> <maxSizeRollBackups type=3D"log4net.Util.PatternString" value=3D"%property{MaxRollBacks}" /> <maximumFileSize type=3D"log4net.Util.PatternString" value=3D"%property{MaxFileSize}" /> <rollingStyle type=3D"log4net.Util.PatternString" value=3D"%property{RollStyle}" /> <staticLogFileName value=3D"%property{isStaticLogFile}" /> <layout type=3D"log4net.Layout.PatternLayout"> <header type=3D"log4net.Util.PatternString" value=3D"**************************************** Logging Started - %date ******************************************&#13;&#10;" /> <footer type=3D"log4net.Util.PatternString" value=3D"**************************************** Logging Ended - %date ******************************************&#13;&#10;" /> <conversionPattern value=3D"%date [%thread] %-5level %logger [%ndc] - %message%newline" /> </layout> </appender> <appender name=3D"ErrLogFile" type=3D"log4net.Appender.FileAppender"> <file type=3D"log4net.Util.PatternString" value=3D"%property{LogPath}\Errors\errLog.txt" /> <sppendToFile value=3D"%property{isAppendToFile}" /> <layout type=3D"log4net.Layout.PatternLayout"> <header type=3D"log4net.Util.PatternString" value=3D"**************************************** Logging Started - %date ******************************************&#13;&#10;" /> <footer type=3D"log4net.Util.PatternString" value=3D"**************************************** Logging Ended - %date ******************************************&#13;&#10;" /> <conversionPattern value=3D"%date [%thread] %-5level %logger [%ndc] &lt;%property{auth}&gt; - %message%newline" /> </layout> </appender> <appender name=3D"ConsoleLog" type=3D"log4net.Appender.ConsoleAppender"> <layout type=3D"log4net.Layout.PatternLayout"> <conversionPattern value=3D"%date [%thread] %-5level %logger [%ndc] &lt;%property{auth}&gt; - %message%newline" /> </layout> </appender> <appender name=3D"EventLog" type=3D"log4net.Appender.EventLogAppender"> <layout type=3D"log4net.Layout.PatternLayout"> <conversionPattern value=3D"%date [%thread] %-5level %logger [%ndc] &lt;%property{auth}&gt; - %message%newline" /> </layout> </appender> <!-- Setup the root category, add the appenders and set the default level --> <root> <level value=3D"ALL" /> <appender-ref ref=3D"SyncLogFile" /> <appender-ref ref=3D"ErrLogFile" /> <appender-ref ref=3D"ConsoleLog" /> <appender-ref ref=3D"EventLog" /> </root> </log4net> </configuration> All of my other appenders work (ConsoleLog, EventLog and ErrLogFile (when I remove the appendToFile paramter). Please any assistance would be most appreciated. Thanks, -saige- Do you have a disaster recovery plan for your servers? If not, ask about We= Are=20 IT's Total Rescue business continuity plan. --=_reb-r45811F82-t4A29331C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} pre {mso-style-priority:99; mso-style-link:"HTML Preformatted Char"; margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Courier New";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} span.value3 {mso-style-name:value3;} span.HTMLPreformattedChar {mso-style-name:"HTML Preformatted Char"; mso-style-priority:99; mso-style-link:"HTML Preformatted"; font-family:"Courier New";} .MsoChpDefault {mso-style-type:export-only;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><span class=3Dvalue3><span style=3D'font-size:9.0pt;fo= nt-family: "Verdana","sans-serif"'>I have ran into a &quot;small&quot; brick wall. &nbsp;Hoping that I can find a couple of log4net guru's here. &nbsp;My situation.</span></span><span style=3D'font-size:9.0pt;font-family:"Verdana= ","sans-serif"'><br> <br> <span class=3Dvalue3>In trying to make my logging as configurable as possib= le in my application, I have been tinkering with trying to set the boolean values= for appendToFile and staticLogFileName as dynamic values. &nbsp;These have a default value (currently stored in the My.Settings metadata). &nbsp;My prob= lem is that when I go to configure the values at runtime I get this error in my stack trace:<o:p></o:p></span></span></p> <p class=3DMsoNormal><span class=3Dvalue3><span style=3D'font-size:9.0pt;fo= nt-family: "Verdana","sans-serif"'><o:p>&nbsp;</o:p></span></span></p> <p class=3DMsoNormal><span class=3Dvalue3><span style=3D'font-size:9.0pt;fo= nt-family: "Verdana","sans-serif"'><o:p>&nbsp;</o:p></span></span></p> <p class=3DMsoNormal><span class=3Dvalue3><span style=3D'font-size:9.0pt;fo= nt-family: "Verdana","sans-serif"'>log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogFile] of type [log4net.Appender.RollingFileAppender= ]. Reported error follows.</span></span><span style=3D'font-size:9.0pt;font-fa= mily: "Verdana","sans-serif"'><br> <span class=3Dvalue3>System.FormatException: String was not recognized as a= valid Boolean.</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at System.Boolean.Parse(String value)</sp= an><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.TypeConverters.BooleanCon= verter.ConvertFrom(Object source)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.OptionConverter.ConvertSt= ringTo(Type target, String txt)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ConvertStringTo(Type type, String value)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.SetParameter(XmlElement element, Object target)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ParseAppender(XmlElement appenderElement)</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not found.</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Could not crea= te Appender [ErrLogFile] of type [log4net.Appender.FileAppender]. Reported err= or follows.</span><br> <span class=3Dvalue3>System.FormatException: String was not recognized as a= valid Boolean.</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at System.Boolean.Parse(String value)</sp= an><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.TypeConverters.BooleanCon= verter.ConvertFrom(Object source)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.OptionConverter.ConvertSt= ringTo(Type target, String txt)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ConvertStringTo(Type type, String value)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.SetParameter(XmlElement element, Object target)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ParseAppender(XmlElement appenderElement)</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not found.</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Could not crea= te Appender [SyncLogFile] of type [log4net.Appender.RollingFileAppender]. Repo= rted error follows.</span><br> <span class=3Dvalue3>System.FormatException: String was not recognized as a= valid Boolean.</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at System.Boolean.Parse(String value)</sp= an><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.TypeConverters.BooleanCon= verter.ConvertFrom(Object source)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.OptionConverter.ConvertSt= ringTo(Type target, String txt)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ConvertStringTo(Type type, String value)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.SetParameter(XmlElement element, Object target)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ParseAppender(XmlElement appenderElement)</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not found.</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Could not crea= te Appender [ErrLogFile] of type [log4net.Appender.FileAppender]. Reported err= or follows.</span><br> <span class=3Dvalue3>System.FormatException: String was not recognized as a= valid Boolean.</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at System.Boolean.Parse(String value)</sp= an><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.TypeConverters.BooleanCon= verter.ConvertFrom(Object source)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.OptionConverter.ConvertSt= ringTo(Type target, String txt)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ConvertStringTo(Type type, String value)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.SetParameter(XmlElement element, Object target)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ParseAppender(XmlElement appenderElement)</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not found.</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Could not crea= te Appender [SyncLogFile] of type [log4net.Appender.RollingFileAppender]. Repo= rted error follows.</span><br> <span class=3Dvalue3>System.FormatException: String was not recognized as a= valid Boolean.</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at System.Boolean.Parse(String value)</sp= an><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.TypeConverters.BooleanCon= verter.ConvertFrom(Object source)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.OptionConverter.ConvertSt= ringTo(Type target, String txt)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ConvertStringTo(Type type, String value)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.SetParameter(XmlElement element, Object target)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ParseAppender(XmlElement appenderElement)</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not found.</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Could not crea= te Appender [ErrLogFile] of type [log4net.Appender.FileAppender]. Reported err= or follows.</span><br> <span class=3Dvalue3>System.FormatException: String was not recognized as a= valid Boolean.</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at System.Boolean.Parse(String value)</sp= an><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.TypeConverters.BooleanCon= verter.ConvertFrom(Object source)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.OptionConverter.ConvertSt= ringTo(Type target, String txt)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ConvertStringTo(Type type, String value)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.SetParameter(XmlElement element, Object target)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ParseAppender(XmlElement appenderElement)</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not found.</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Could not crea= te Appender [SyncLogFile] of type [log4net.Appender.RollingFileAppender]. Repo= rted error follows.</span><br> <span class=3Dvalue3>System.FormatException: String was not recognized as a= valid Boolean.</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at System.Boolean.Parse(String value)</sp= an><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.TypeConverters.BooleanCon= verter.ConvertFrom(Object source)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.OptionConverter.ConvertSt= ringTo(Type target, String txt)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ConvertStringTo(Type type, String value)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.SetParameter(XmlElement element, Object target)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ParseAppender(XmlElement appenderElement)</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not found.</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Could not crea= te Appender [ErrLogFile] of type [log4net.Appender.FileAppender]. Reported err= or follows.</span><br> <span class=3Dvalue3>System.FormatException: String was not recognized as a= valid Boolean.</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at System.Boolean.Parse(String value)</sp= an><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.TypeConverters.BooleanCon= verter.ConvertFrom(Object source)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.OptionConverter.ConvertSt= ringTo(Type target, String txt)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ConvertStringTo(Type type, String value)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.SetParameter(XmlElement element, Object target)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ParseAppender(XmlElement appenderElement)</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not found.</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Could not crea= te Appender [SyncLogFile] of type [log4net.Appender.RollingFileAppender]. Repo= rted error follows.</span><br> <span class=3Dvalue3>System.FormatException: String was not recognized as a= valid Boolean.</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at System.Boolean.Parse(String value)</sp= an><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.TypeConverters.BooleanCon= verter.ConvertFrom(Object source)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.OptionConverter.ConvertSt= ringTo(Type target, String txt)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ConvertStringTo(Type type, String value)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.SetParameter(XmlElement element, Object target)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ParseAppender(XmlElement appenderElement)</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not found.</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Could not crea= te Appender [ErrLogFile] of type [log4net.Appender.FileAppender]. Reported err= or follows.</span><br> <span class=3Dvalue3>System.FormatException: String was not recognized as a= valid Boolean.</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at System.Boolean.Parse(String value)</sp= an><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.TypeConverters.BooleanCon= verter.ConvertFrom(Object source)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Util.OptionConverter.ConvertSt= ringTo(Type target, String txt)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ConvertStringTo(Type type, String value)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.SetParameter(XmlElement element, Object target)</span><br> <span class=3Dvalue3>&nbsp; &nbsp;at log4net.Repository.Hierarchy.XmlHierar= chyConfigurator.ParseAppender(XmlElement appenderElement)</span><br> <span class=3Dvalue3>log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not found.</span><br> <br> <span class=3Dvalue3>The way that I am configuring the values is by trying = to use the code displayed here:<o:p></o:p></span></span></p> <p class=3DMsoNormal><span class=3Dvalue3><span style=3D'font-size:9.0pt;fo= nt-family: "Verdana","sans-serif"'><o:p>&nbsp;</o:p></span></span></p> <table class=3DMsoNormalTable border=3D0 cellspacing=3D0 cellpadding=3D0 style=3D'border-collapse:collapse'> <tr> <td style=3D'padding:0in 0in 0in 0in'></td> </tr> </table> <pre><span style=3D'font-size:9.0pt'>'In Main<o:p></o:p></span></pre><pre><= span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = Private Shared Log As ILog<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'> <o:p></o:p></span></pre><pre><span style=3D'font= -size: 9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Private Sub frmMain= _Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles M= yBase.Load<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '[...]<o:p></o:p></span></p= re><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; primeLogging()<o:p></o:p></= span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; configLog4Net()<o:p></o:p><= /span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Log =3D LogManager.GetLogge= r(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)<o:p></o:p>= </span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Log.Info(&quot;This is the = start of the application.&quot;)<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = End Sub<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'> <o:p></o:p></span></pre><pre><span style=3D'font= -size: 9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Private Sub primeLo= gging()<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not My.Settings.LogPath = =3D &quot;&quot; Then<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; _LogPath =3D My.Settings.LogPath<o:p></o:p></spa= n></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<o:p></o:p></span></pre= ><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; _LogPath =3D My.Application.Info.DirectoryPath &= amp; &quot;\Logs\&quot;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<o:p></o:p></span></p= re><pre><span style=3D'font-size:9.0pt'> <o:p></o:p></span></pre><pre><span style=3D'font= -size: 9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n= bsp;&nbsp;&nbsp;&nbsp;&nbsp; '[...]<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'> <o:p></o:p></span></pre><pre><span style=3D'font= -size: 9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n= bsp;&nbsp;&nbsp;&nbsp;&nbsp; _MaxRollBacks =3D My.Settings.MaxRollBacks<o:p= ></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _MaxFileSize =3D My.Setting= s.MaxFileSize<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'> <o:p></o:p></span></pre><pre><span style=3D'font= -size: 9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n= bsp;&nbsp;&nbsp;&nbsp;&nbsp; _isAppendToFile =3D My.Settings.isAppendToFile= <o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _isStaticLogFile =3D My.Set= tings.isStaticLogFile<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = End Sub<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'> <o:p></o:p></span></pre><pre><span style=3D'font= -size: 9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Private Sub configL= og4Net()<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log4net.GlobalContext.Prope= rties(&quot;LogPath&quot;) =3D _LogPath<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log4net.GlobalContext.Prope= rties(&quot;LogName&quot;) =3D _LogName<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log4net.GlobalContext.Prope= rties(&quot;RollStyle&quot;) =3D _tempRollStyle<o:p></o:p></span></pre><pre= ><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log4net.GlobalContext.Prope= rties(&quot;MaxRollBacks&quot;) =3D _MaxRollBacks<o:p></o:p></span></pre><p= re><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log4net.GlobalContext.Prope= rties(&quot;MaxFileSize&quot;) =3D _MaxFileSize<o:p></o:p></span></pre><pre= ><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log4net.GlobalContext.Prope= rties(&quot;isAppendToFile&quot;) =3D _isAppendToFile<o:p></o:p></span></pr= e><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log4net.GlobalContext.Prope= rties(&quot;isStaticLogFile&quot;) =3D _isStaticLogFile<o:p></o:p></span></= pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'My attempts to cast as a b= oolean (did not work)<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'log4net.Util.OptionConver= ter.ToBoolean(log4net.GlobalContext.Properties(&quot;isAppendToFile&quot;),= _isAppendToFile)<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'log4net.Util.OptionConver= ter.ToBoolean(log4net.GlobalContext.Properties(&quot;isStaticLogFile&quot;)= , _isStaticLogFile)<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = End Sub<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'> <o:p></o:p></span></pre><pre><span style=3D'font= -size: 9.0pt'>'In Log4Net.config (using a seperate configuration file for Log4Net)= <o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&lt;?xml version=3D&quot;1.0&quot; encoding=3D&qu= ot;utf-8&quot; ?&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&lt;configuration&gt;<o:p></o:p></span></pre><pre= ><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &lt;configSections&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;section name=3D&quot;lo= g4net&quot; type=3D&quot;System.Configuration.IgnoreSectionHandler&quot; /&= gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &lt;/configSections&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &lt;appSettings&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- To enable internal = log4net logging specify the following appSettings key --&gt;<o:p></o:p></sp= an></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add key=3D&quot;log4net= .Internal.Debug&quot; value=3D&quot;true&quot;/&gt;<o:p></o:p></span></pre>= <pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &lt;/appSettings&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &lt;!-- This section contains the log4net configuration settings --&gt;<o:p= ></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &lt;log4net&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Define some output = appenders --&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appender name=3D&quot;S= yncLogFile&quot; type=3D&quot;log4net.Appender.RollingFileAppender&quot;&gt= ;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;file type=3D&quot;log4net.Util.PatternString= &quot; value=3D&quot;%property{LogPath}\Syncronizations\%property{LogName}&= quot; /&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=3D&quot;DatePattern&quot; value= =3D&quot;.yyyy-MM-dd-tt.log&quot;/&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appendToFile value=3D&quot;%property{isAppen= dToFile}&quot; /&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;maxSizeRollBackups type=3D&quot;log4net.Util= .PatternString&quot; value=3D&quot;%property{MaxRollBacks}&quot; /&gt;<o:p>= </o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;maximumFileSize type=3D&quot;log4net.Util.Pa= tternString&quot; value=3D&quot;%property{MaxFileSize}&quot; /&gt;<o:p></o:= p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rollingStyle type=3D&quot;log4net.Util.Patte= rnString&quot; value=3D&quot;%property{RollStyle}&quot; /&gt;<o:p></o:p></s= pan></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;staticLogFileName value=3D&quot;%property{is= StaticLogFile}&quot; /&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;layout type=3D&quot;log4net.Layout.PatternLa= yout&quot;&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp; &lt;header type=3D&quot;log4net.Util.PatternString&quot; value=3D&quo= t;**************************************** Logging Started - %date ********= **********************************&amp;#13;&amp;#10;&quot; /&gt;<o:p></o:p>= </span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp; &lt;footer type=3D&quot;log4net.Util.PatternString&quot; value=3D&quo= t;**************************************** Logging Ended - %date **********= ********************************&amp;#13;&amp;#10;&quot; /&gt;<o:p></o:p></= span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp; &lt;conversionPattern value=3D&quot;%date [%thread] %-5level %logger = [%ndc] - %message%newline&quot; /&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/layout&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/appender&gt;<o:p></o:p= ></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appender name=3D&quot;E= rrLogFile&quot; type=3D&quot;log4net.Appender.FileAppender&quot;&gt;<o:p></= o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;file type=3D&quot;log4net.Util.PatternString= &quot; value=3D&quot;%property{LogPath}\Errors\errLog.txt&quot; /&gt;<o:p><= /o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sppendToFile value=3D&quot;%property{isAppen= dToFile}&quot; /&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;layout type=3D&quot;log4net.Layout.PatternLa= yout&quot;&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp; &lt;header type=3D&quot;log4net.Util.PatternString&quot; value=3D&quo= t;**************************************** Logging Started - %date ********= **********************************&amp;#13;&amp;#10;&quot; /&gt;<o:p></o:p>= </span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp; &lt;footer type=3D&quot;log4net.Util.PatternString&quot; value=3D&quo= t;**************************************** Logging Ended - %date **********= ********************************&amp;#13;&amp;#10;&quot; /&gt;<o:p></o:p></= span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp; &lt;conversionPattern value=3D&quot;%date [%thread] %-5level %logger = [%ndc] &amp;lt;%property{auth}&amp;gt; - %message%newline&quot; /&gt;<o:p><= /o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/layout&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/appender&gt;<o:p></o:p= ></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appender name=3D&quot;C= onsoleLog&quot; type=3D&quot;log4net.Appender.ConsoleAppender&quot;&gt;<o:p= ></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;layout type=3D&quot;log4net.Layout.PatternLa= yout&quot;&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp; &lt;conversionPattern value=3D&quot;%date [%thread] %-5level %logger = [%ndc] &amp;lt;%property{auth}&amp;gt; - %message%newline&quot; /&gt;<o:p><= /o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/layout&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/appender&gt;<o:p></o:p= ></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appender name=3D&quot;E= ventLog&quot; type=3D&quot;log4net.Appender.EventLogAppender&quot;&gt;<o:p>= </o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;layout type=3D&quot;log4net.Layout.PatternLa= yout&quot;&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp; &lt;conversionPattern value=3D&quot;%date [%thread] %-5level %logger = [%ndc] &amp;lt;%property{auth}&amp;gt; - %message%newline&quot; /&gt;<o:p><= /o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/layout&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/appender&gt;<o:p></o:p= ></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Setup the root cate= gory, add the appenders and set the default level --&gt;<o:p></o:p></span><= /pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;root&gt;<o:p></o:p></sp= an></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;level value=3D&quot;ALL&quot; /&gt;<o:p></o:= p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appender-ref ref=3D&quot;SyncLogFile&quot; /= &gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appender-ref ref=3D&quot;ErrLogFile&quot; /&= gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appender-ref ref=3D&quot;ConsoleLog&quot; /&= gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;appender-ref ref=3D&quot;EventLog&quot; /&gt= ;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/root&gt;<o:p></o:p></s= pan></pre><pre><span style=3D'font-size:9.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &lt;/log4net&gt;<o:p></o:p></span></pre><pre><span style=3D'font-size:9.0pt'>&lt;/configuration&gt;<o:p></o:p></span></pre> <p class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family:"Verdana","= sans-serif"'><br> <br> <span class=3Dvalue3>All of my other appenders work (ConsoleLog, EventLog a= nd ErrLogFile (when I remove the appendToFile paramter).</span><br> <br> <span class=3Dvalue3>Please any assistance would be most appreciated.</span= ><br> <br> <span class=3Dvalue3>Thanks,</span><br> <br> <span class=3Dvalue3>-saige-</span></span><o:p></o:p></p> </div> </body> </html> <pre> Do you have a disaster recovery plan for your servers? If not, ask about We= Are=20 IT's Total Rescue business continuity plan.</pre> --=_reb-r45811F82-t4A29331C-- From log4net-user-returnjosephwilliams@example.com Fri Jun 05 18:24:10 2009 Return-Path: <log4net-user-returnjosephwilliams@example.com> Delivered-To: josephwilliams@example.com Received: (qmail 67751 invoked from network); 5 Jun 2009 18:24:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jun 2009 18:24:10 -0000 Received: (qmail 27072 invoked by uid 500); 5 Jun 2009 18:23:16 -0000 Delivered-To: josephwilliams@example.com Received: (qmail 26680 invoked by uid 500); 5 Jun 2009 18:23:15 -0000 Mailing-List: contact josephwilliams@example.com; run by ezmlm Precedence: bulk list-help: <mailto:josephwilliams@example.com> list-unsubscribe: <mailto:josephwilliams@example.com> List-Post: <mailto:josephwilliams@example.com> Reply-To: "Log4NET User" <josephwilliams@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list josephwilliams@example.com Received: (qmail 26007 invoked by uid 99); 5 Jun 2009 18:20:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 18:20:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of josephwilliams@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO blu0-omc4-s24.blu0.hotmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 18:20:30 +0000 Received: from BLU127-W27 ([83.161.120.155]) by blu0-omc4-s24.blu0.hotmail.com with Microsoft SMTPSVC403.961.8953); Fri, 5 Jun 2009 11:20:10 -0700 Message-ID: <josephwilliams@example.com> Content-Type: multipart/alternative; boundary="_784951d3-a544-4cfb-9a4b-c198351d33b7_" X-Originating-IP: [83.161.120.155] From: Karim Bourouba <josephwilliams@example.com> To: <josephwilliams@example.com>, <josephwilliams@example.com> Subject: RE: How do I use dynamic boolean values on RollingFileAppender Date: Fri, 5 Jun 2009 19:20:09 +0100 Importance: Normal In-Reply-To: <josephwilliams@example.com> References: <josephwilliams@example.com> MIME-Version: 1.0 X-OriginalArrivalTime: 05 Jun 2009 18:20:10.0290 (UTC) FILETIME=[42E16920:01C9E60A] X-Virus-Checked: Checked by ClamAV on apache.org --_784951d3-a544-4cfb-9a4b-c198351d33b7_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The properties you are using to create the logfile name=2C are these being = generated by log4net? If they are=2C I dont think you are going to succeed= =2C the logfile needs to be created prior to logging commencing. The proper= ties you seem to be supplying wont exist at the point the you are trying to= write the file. =20 Also=2C is the .config file the best place to be doing this? Why not simply= create a file in the code if you really need to do this? I can understand = why you would want to dynamically name a log file=2C but the way you are go= ing about it probably isnt the best method. =20 Subject: How do I use dynamic boolean values on RollingFileAppender Date: Fri=2C 5 Jun 2009 10:01:18 -0500 From: josephwilliams@example.com To: josephwilliams@example.com=3B josephwilliams@example.com I have ran into a "small" brick wall. Hoping that I can find a couple of l= og4net guru's here. My situation. In trying to make my logging as configurable as possible in my application= =2C I have been tinkering with trying to set the boolean values for appendT= oFile and staticLogFileName as dynamic values. These have a default value = (currently stored in the My.Settings metadata). My problem is that when I = go to configure the values at runtime I get this error in my stack trace: =20 =20 log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogF= ile] of type [log4net.Appender.RollingFileAppender]. Reported error follows= . System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target=2C String tx= t) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type=2C String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element=2C Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not fo= und. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFi= le] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target=2C String tx= t) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type=2C String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element=2C Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not fou= nd. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogF= ile] of type [log4net.Appender.RollingFileAppender]. Reported error follows= . System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target=2C String tx= t) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type=2C String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element=2C Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not fo= und. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFi= le] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target=2C String tx= t) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type=2C String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element=2C Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not fou= nd. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogF= ile] of type [log4net.Appender.RollingFileAppender]. Reported error follows= . System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target=2C String tx= t) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type=2C String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element=2C Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not fo= und. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFi= le] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target=2C String tx= t) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type=2C String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element=2C Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not fou= nd. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogF= ile] of type [log4net.Appender.RollingFileAppender]. Reported error follows= . System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target=2C String tx= t) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type=2C String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element=2C Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not fo= und. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFi= le] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target=2C String tx= t) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type=2C String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element=2C Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not fou= nd. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogF= ile] of type [log4net.Appender.RollingFileAppender]. Reported error follows= . System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target=2C String tx= t) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type=2C String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element=2C Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not fo= und. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFi= le] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target=2C String tx= t) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type=2C String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element=2C Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not fou= nd. The way that I am configuring the values is by trying to use the code displ= ayed here: =20 'In Main Private Shared Log As ILog Private Sub frmMain_Lo= ad(ByVal sender As System.Object=2C ByVal e As System.EventArgs) Handles My= Base.Load '[...] primeLogging() = configLog4Net() Log =3D LogManager.GetLogger(System.Re= flection.MethodBase.GetCurrentMethod().DeclaringType) Log.I= nfo("This is the start of the application.") End Sub Priva= te Sub primeLogging() If Not My.Settings.LogPath =3D "" The= n _LogPath =3D My.Settings.LogPath = Else _LogPath =3D My.Application.Info.DirectoryPa= th & "\Logs\" End If '[...] = _MaxRollBacks =3D My.Settings.MaxRollBacks _MaxFileSize = =3D My.Settings.MaxFileSize _isAppendToFile =3D My.Setting= s.isAppendToFile _isStaticLogFile =3D My.Settings.isStaticL= ogFile End Sub Private Sub configLog4Net() = log4net.GlobalContext.Properties("LogPath") =3D _LogPath l= og4net.GlobalContext.Properties("LogName") =3D _LogName log= 4net.GlobalContext.Properties("RollStyle") =3D _tempRollStyle = log4net.GlobalContext.Properties("MaxRollBacks") =3D _MaxRollBacks = log4net.GlobalContext.Properties("MaxFileSize") =3D _MaxFileSize= log4net.GlobalContext.Properties("isAppendToFile") =3D _is= AppendToFile log4net.GlobalContext.Properties("isStaticLogF= ile") =3D _isStaticLogFile 'My attempts to cast as a boolea= n (did not work) 'log4net.Util.OptionConverter.ToBoolean(l= og4net.GlobalContext.Properties("isAppendToFile")=2C _isAppendToFile) = 'log4net.Util.OptionConverter.ToBoolean(log4net.GlobalContext.P= roperties("isStaticLogFile")=2C _isStaticLogFile) End Sub 'In Log4N= et.config (using a seperate configuration file for Log4Net)<?xml version=3D= "1.0" encoding=3D"utf-8" ?><configuration> <configSections> = <section name=3D"log4net" type=3D"System.Configuration.IgnoreSecti= onHandler" /> </configSections> <appSettings> = <!-- To enable internal log4net logging specify the following appSetting= s key --> <add key=3D"log4net.Internal.Debug" value=3D"true= "/> </appSettings> <!-- This section contains the log4net c= onfiguration settings --> <log4net> <!-- Define som= e output appenders --> <appender name=3D"SyncLogFile" type= =3D"log4net.Appender.RollingFileAppender"> <file t= ype=3D"log4net.Util.PatternString" value=3D"%property{LogPath}\Syncronizati= ons\%property{LogName}" /> <param name=3D"DatePatt= ern" value=3D".yyyy-MM-dd-tt.log"/> <appendToFile = value=3D"%property{isAppendToFile}" /> <maxSizeRol= lBackups type=3D"log4net.Util.PatternString" value=3D"%property{MaxRollBack= s}" /> <maximumFileSize type=3D"log4net.Util.Patte= rnString" value=3D"%property{MaxFileSize}" /> <rol= lingStyle type=3D"log4net.Util.PatternString" value=3D"%property{RollStyle}= " /> <staticLogFileName value=3D"%property{isStati= cLogFile}" /> <layout type=3D"log4net.Layout.Patte= rnLayout"> <header type=3D"log4net.Util.P= atternString" value=3D"**************************************** Logging Sta= rted - %date ******************************************&#13=3B&#10=3B" /> = <footer type=3D"log4net.Util.PatternString= " value=3D"**************************************** Logging Ended - %date *= *****************************************&#13=3B&#10=3B" /> = <conversionPattern value=3D"%date [%thread] %-5level %lo= gger [%ndc] - %message%newline" /> </layout> = </appender> <appender name=3D"ErrLogFile" type= =3D"log4net.Appender.FileAppender"> <file type=3D"= log4net.Util.PatternString" value=3D"%property{LogPath}\Errors\errLog.txt" = /> <sppendToFile value=3D"%property{isAppendToFile= }" /> <layout type=3D"log4net.Layout.PatternLayout= "> <header type=3D"log4net.Util.PatternSt= ring" value=3D"**************************************** Logging Started - %= date ******************************************&#13=3B&#10=3B" /> = <footer type=3D"log4net.Util.PatternString" value= =3D"**************************************** Logging Ended - %date ********= **********************************&#13=3B&#10=3B" /> = <conversionPattern value=3D"%date [%thread] %-5level %logger [%= ndc] &lt=3B%property{auth}&gt=3B - %message%newline" /> = </layout> </appender> <appender name= =3D"ConsoleLog" type=3D"log4net.Appender.ConsoleAppender"> = <layout type=3D"log4net.Layout.PatternLayout"> = <conversionPattern value=3D"%date [%thread] %-5level %logger= [%ndc] &lt=3B%property{auth}&gt=3B - %message%newline" /> = </layout> </appender> <appender na= me=3D"EventLog" type=3D"log4net.Appender.EventLogAppender"> = <layout type=3D"log4net.Layout.PatternLayout"> = <conversionPattern value=3D"%date [%thread] %-5level %logge= r [%ndc] &lt=3B%property{auth}&gt=3B - %message%newline" /> = </layout> </appender> <!-- Setup = the root category=2C add the appenders and set the default level --> = <root> <level value=3D"ALL" /> = <appender-ref ref=3D"SyncLogFile" /> = <appender-ref ref=3D"ErrLogFile" /> <appender-r= ef ref=3D"ConsoleLog" /> <appender-ref ref=3D"Even= tLog" /> </root> </log4net></configuration> All of my other appenders work (ConsoleLog=2C EventLog and ErrLogFile (when= I remove the appendToFile paramter). Please any assistance would be most appreciated. Thanks=2C -saige- Do you have a disaster recovery plan for your servers? If not=2C ask about = We Are=20 IT's Total Rescue business continuity plan. _________________________________________________________________ MSN straight to your mobile - news=2C entertainment=2C videos and more. http://clk.atdmt.com/UKM/go/147991039/direct/01/= --_784951d3-a544-4cfb-9a4b-c198351d33b7_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style> .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 10pt=3B font-family:Verdana } </style> </head> <body class=3D'hmmessage'> <BR>The properties you are using to create the logfile name=2C are these be= ing generated by log4net? If they are=2C I dont think you are going to succ= eed=2C the logfile needs to be created prior to logging commencing. The pro= perties you seem to be supplying wont exist at the point the you are trying= to write the file.<BR> &nbsp=3B<BR> Also=2C is the .config file the best place to be doing this? Why not simply= create a file in the code if you really need to do this? I can understand = why you would want to dynamically name a log file=2C but the way you are go= ing about it probably isnt the best method.<BR><BR><BR><BR><BR>&nbsp=3B <BR> <HR id=3DstopSpelling> Subject: How do I use dynamic boolean values on RollingFileAppender<BR>Date= : Fri=2C 5 Jun 2009 10:01:18 -0500<BR>From: josephwilliams@example.com<BR>To: log= josephwilliams@example.com=3B josephwilliams@example.com<BR><BR> <STYLE> .ExternalClass p.EC_MsoNormal=2C .ExternalClass li.EC_MsoNormal=2C .Externa= lClass div.EC_MsoNormal {margin-bottom:.0001pt=3Bfont-size:11.0pt=3Bfont-family:'Calibri'=2C'sans-s= erif'=3B} .ExternalClass a:link=2C .ExternalClass span.EC_MsoHyperlink {color:blue=3Btext-decoration:underline=3B} .ExternalClass a:visited=2C .ExternalClass span.EC_MsoHyperlinkFollowed {color:purple=3Btext-decoration:underline=3B} .ExternalClass pre {margin-bottom:.0001pt=3Bfont-size:12.0pt=3Bfont-family:'Courier New'=3B} .ExternalClass span.EC_EmailStyle17 {font-family:'Calibri'=2C'sans-serif'=3Bcolor:windowtext=3B} .ExternalClass span.EC_value3 {=3B} .ExternalClass span.EC_HTMLPreformattedChar {font-family:'Courier New'=3B} .ExternalClass .EC_MsoChpDefault {=3B} @page Section1 {size:8.5in 11.0in=3B} .ExternalClass div.EC_Section1 {page:Section1=3B} </STYLE> <DIV class=3DEC_Section1> <P class=3DEC_MsoNormal><SPAN class=3DEC_value3><SPAN style=3D"FONT-FAMILY:= 'Verdana'=2C'sans-serif'=3B FONT-SIZE: 9pt">I have ran into a "small" bric= k wall. &nbsp=3BHoping that I can find a couple of log4net guru's here. &nb= sp=3BMy situation.</SPAN></SPAN><SPAN style=3D"FONT-FAMILY: 'Verdana'=2C'sa= ns-serif'=3B FONT-SIZE: 9pt"><BR><BR><SPAN class=3DEC_value3>In trying to m= ake my logging as configurable as possible in my application=2C I have been= tinkering with trying to set the boolean values for appendToFile and stati= cLogFileName as dynamic values. &nbsp=3BThese have a default value (current= ly stored in the My.Settings metadata). &nbsp=3BMy problem is that when I g= o to configure the values at runtime I get this error in my stack trace:</S= PAN></SPAN></P> <P class=3DEC_MsoNormal><SPAN class=3DEC_value3><SPAN style=3D"FONT-FAMILY:= 'Verdana'=2C'sans-serif'=3B FONT-SIZE: 9pt">&nbsp=3B</SPAN></SPAN></P> <P class=3DEC_MsoNormal><SPAN class=3DEC_value3><SPAN style=3D"FONT-FAMILY:= 'Verdana'=2C'sans-serif'=3B FONT-SIZE: 9pt">&nbsp=3B</SPAN></SPAN></P> <P class=3DEC_MsoNormal><SPAN class=3DEC_value3><SPAN style=3D"FONT-FAMILY:= 'Verdana'=2C'sans-serif'=3B FONT-SIZE: 9pt">log4net:ERROR XmlHierarchyConf= igurator: Could not create Appender [SyncLogFile] of type [log4net.Appender= .RollingFileAppender]. Reported error follows.</SPAN></SPAN><SPAN style=3D"= FONT-FAMILY: 'Verdana'=2C'sans-serif'=3B FONT-SIZE: 9pt"><BR><SPAN class=3D= EC_value3>System.FormatException: String was not recognized as a valid Bool= ean.</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat System.Boolean.P= arse(String value)</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat lo= g4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source)</SPAN= ><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Util.OptionConvert= er.ConvertStringTo(Type target=2C String txt)</SPAN><BR><SPAN class=3DEC_va= lue3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigura= tor.ConvertStringTo(Type type=2C String value)</SPAN><BR><SPAN class=3DEC_v= alue3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigur= ator.SetParameter(XmlElement element=2C Object target)</SPAN><BR><SPAN clas= s=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchy= Configurator.ParseAppender(XmlElement appenderElement)</SPAN><BR><SPAN clas= s=3DEC_value3>log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncL= ogFile] not found.</SPAN><BR><SPAN class=3DEC_value3>log4net:ERROR XmlHiera= rchyConfigurator: Could not create Appender [ErrLogFile] of type [log4net.A= ppender.FileAppender]. Reported error follows.</SPAN><BR><SPAN class=3DEC_v= alue3>System.FormatException: String was not recognized as a valid Boolean.= </SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat System.Boolean.Parse= (String value)</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4ne= t.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source)</SPAN><BR= ><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Util.OptionConverter.C= onvertStringTo(Type target=2C String txt)</SPAN><BR><SPAN class=3DEC_value3= >&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurator.= ConvertStringTo(Type type=2C String value)</SPAN><BR><SPAN class=3DEC_value= 3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurator= .SetParameter(XmlElement element=2C Object target)</SPAN><BR><SPAN class=3D= EC_value3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConf= igurator.ParseAppender(XmlElement appenderElement)</SPAN><BR><SPAN class=3D= EC_value3>log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFil= e] not found.</SPAN><BR><SPAN class=3DEC_value3>log4net:ERROR XmlHierarchyC= onfigurator: Could not create Appender [SyncLogFile] of type [log4net.Appen= der.RollingFileAppender]. Reported error follows.</SPAN><BR><SPAN class=3DE= C_value3>System.FormatException: String was not recognized as a valid Boole= an.</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat System.Boolean.Pa= rse(String value)</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log= 4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source)</SPAN>= <BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Util.OptionConverte= r.ConvertStringTo(Type target=2C String txt)</SPAN><BR><SPAN class=3DEC_val= ue3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurat= or.ConvertStringTo(Type type=2C String value)</SPAN><BR><SPAN class=3DEC_va= lue3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigura= tor.SetParameter(XmlElement element=2C Object target)</SPAN><BR><SPAN class= =3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyC= onfigurator.ParseAppender(XmlElement appenderElement)</SPAN><BR><SPAN class= =3DEC_value3>log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLo= gFile] not found.</SPAN><BR><SPAN class=3DEC_value3>log4net:ERROR XmlHierar= chyConfigurator: Could not create Appender [ErrLogFile] of type [log4net.Ap= pender.FileAppender]. Reported error follows.</SPAN><BR><SPAN class=3DEC_va= lue3>System.FormatException: String was not recognized as a valid Boolean.<= /SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat System.Boolean.Parse(= String value)</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net= .Util.TypeConverters.BooleanConverter.ConvertFrom(Object source)</SPAN><BR>= <SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Util.OptionConverter.Co= nvertStringTo(Type target=2C String txt)</SPAN><BR><SPAN class=3DEC_value3>= &nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurator.C= onvertStringTo(Type type=2C String value)</SPAN><BR><SPAN class=3DEC_value3= >&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurator.= SetParameter(XmlElement element=2C Object target)</SPAN><BR><SPAN class=3DE= C_value3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfi= gurator.ParseAppender(XmlElement appenderElement)</SPAN><BR><SPAN class=3DE= C_value3>log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile= ] not found.</SPAN><BR><SPAN class=3DEC_value3>log4net:ERROR XmlHierarchyCo= nfigurator: Could not create Appender [SyncLogFile] of type [log4net.Append= er.RollingFileAppender]. Reported error follows.</SPAN><BR><SPAN class=3DEC= _value3>System.FormatException: String was not recognized as a valid Boolea= n.</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat System.Boolean.Par= se(String value)</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4= net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source)</SPAN><= BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Util.OptionConverter= .ConvertStringTo(Type target=2C String txt)</SPAN><BR><SPAN class=3DEC_valu= e3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurato= r.ConvertStringTo(Type type=2C String value)</SPAN><BR><SPAN class=3DEC_val= ue3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurat= or.SetParameter(XmlElement element=2C Object target)</SPAN><BR><SPAN class= =3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyC= onfigurator.ParseAppender(XmlElement appenderElement)</SPAN><BR><SPAN class= =3DEC_value3>log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLo= gFile] not found.</SPAN><BR><SPAN class=3DEC_value3>log4net:ERROR XmlHierar= chyConfigurator: Could not create Appender [ErrLogFile] of type [log4net.Ap= pender.FileAppender]. Reported error follows.</SPAN><BR><SPAN class=3DEC_va= lue3>System.FormatException: String was not recognized as a valid Boolean.<= /SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat System.Boolean.Parse(= String value)</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net= .Util.TypeConverters.BooleanConverter.ConvertFrom(Object source)</SPAN><BR>= <SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Util.OptionConverter.Co= nvertStringTo(Type target=2C String txt)</SPAN><BR><SPAN class=3DEC_value3>= &nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurator.C= onvertStringTo(Type type=2C String value)</SPAN><BR><SPAN class=3DEC_value3= >&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurator.= SetParameter(XmlElement element=2C Object target)</SPAN><BR><SPAN class=3DE= C_value3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfi= gurator.ParseAppender(XmlElement appenderElement)</SPAN><BR><SPAN class=3DE= C_value3>log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile= ] not found.</SPAN><BR><SPAN class=3DEC_value3>log4net:ERROR XmlHierarchyCo= nfigurator: Could not create Appender [SyncLogFile] of type [log4net.Append= er.RollingFileAppender]. Reported error follows.</SPAN><BR><SPAN class=3DEC= _value3>System.FormatException: String was not recognized as a valid Boolea= n.</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat System.Boolean.Par= se(String value)</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4= net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source)</SPAN><= BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Util.OptionConverter= .ConvertStringTo(Type target=2C String txt)</SPAN><BR><SPAN class=3DEC_valu= e3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurato= r.ConvertStringTo(Type type=2C String value)</SPAN><BR><SPAN class=3DEC_val= ue3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurat= or.SetParameter(XmlElement element=2C Object target)</SPAN><BR><SPAN class= =3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyC= onfigurator.ParseAppender(XmlElement appenderElement)</SPAN><BR><SPAN class= =3DEC_value3>log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLo= gFile] not found.</SPAN><BR><SPAN class=3DEC_value3>log4net:ERROR XmlHierar= chyConfigurator: Could not create Appender [ErrLogFile] of type [log4net.Ap= pender.FileAppender]. Reported error follows.</SPAN><BR><SPAN class=3DEC_va= lue3>System.FormatException: String was not recognized as a valid Boolean.<= /SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat System.Boolean.Parse(= String value)</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net= .Util.TypeConverters.BooleanConverter.ConvertFrom(Object source)</SPAN><BR>= <SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Util.OptionConverter.Co= nvertStringTo(Type target=2C String txt)</SPAN><BR><SPAN class=3DEC_value3>= &nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurator.C= onvertStringTo(Type type=2C String value)</SPAN><BR><SPAN class=3DEC_value3= >&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurator.= SetParameter(XmlElement element=2C Object target)</SPAN><BR><SPAN class=3DE= C_value3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfi= gurator.ParseAppender(XmlElement appenderElement)</SPAN><BR><SPAN class=3DE= C_value3>log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile= ] not found.</SPAN><BR><SPAN class=3DEC_value3>log4net:ERROR XmlHierarchyCo= nfigurator: Could not create Appender [SyncLogFile] of type [log4net.Append= er.RollingFileAppender]. Reported error follows.</SPAN><BR><SPAN class=3DEC= _value3>System.FormatException: String was not recognized as a valid Boolea= n.</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat System.Boolean.Par= se(String value)</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4= net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object source)</SPAN><= BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Util.OptionConverter= .ConvertStringTo(Type target=2C String txt)</SPAN><BR><SPAN class=3DEC_valu= e3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurato= r.ConvertStringTo(Type type=2C String value)</SPAN><BR><SPAN class=3DEC_val= ue3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurat= or.SetParameter(XmlElement element=2C Object target)</SPAN><BR><SPAN class= =3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyC= onfigurator.ParseAppender(XmlElement appenderElement)</SPAN><BR><SPAN class= =3DEC_value3>log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLo= gFile] not found.</SPAN><BR><SPAN class=3DEC_value3>log4net:ERROR XmlHierar= chyConfigurator: Could not create Appender [ErrLogFile] of type [log4net.Ap= pender.FileAppender]. Reported error follows.</SPAN><BR><SPAN class=3DEC_va= lue3>System.FormatException: String was not recognized as a valid Boolean.<= /SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat System.Boolean.Parse(= String value)</SPAN><BR><SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net= .Util.TypeConverters.BooleanConverter.ConvertFrom(Object source)</SPAN><BR>= <SPAN class=3DEC_value3>&nbsp=3B &nbsp=3Bat log4net.Util.OptionConverter.Co= nvertStringTo(Type target=2C String txt)</SPAN><BR><SPAN class=3DEC_value3>= &nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurator.C= onvertStringTo(Type type=2C String value)</SPAN><BR><SPAN class=3DEC_value3= >&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfigurator.= SetParameter(XmlElement element=2C Object target)</SPAN><BR><SPAN class=3DE= C_value3>&nbsp=3B &nbsp=3Bat log4net.Repository.Hierarchy.XmlHierarchyConfi= gurator.ParseAppender(XmlElement appenderElement)</SPAN><BR><SPAN class=3DE= C_value3>log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile= ] not found.</SPAN><BR><BR><SPAN class=3DEC_value3>The way that I am config= uring the values is by trying to use the code displayed here:</SPAN></SPAN>= </P> <P class=3DEC_MsoNormal><SPAN class=3DEC_value3><SPAN style=3D"FONT-FAMILY:= 'Verdana'=2C'sans-serif'=3B FONT-SIZE: 9pt">&nbsp=3B</SPAN></SPAN></P> <TABLE style=3D"BORDER-COLLAPSE: collapse" class=3DEC_MsoNormalTable border= =3D0 cellSpacing=3D0 cellPadding=3D0> <TBODY> <TR> <TD style=3D"PADDING-BOTTOM: 0in=3B PADDING-LEFT: 0in=3B PADDING-RIGHT: 0in= =3B PADDING-TOP: 0in"></TD></TR></TBODY></TABLE><PRE><SPAN style=3D"FONT-SI= ZE: 9pt">'In Main</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B Private Shared Log = As ILog</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt"> </SPAN></PRE><PRE>= <SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B Private Sub frmMain_Load(ByVal sender As System.Object= =2C ByVal e As System.EventArgs) Handles MyBase.Load</SPAN></PRE><PRE><SPAN= style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B '[...]</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B primeLogging()</SPAN></PRE><PRE><S= PAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B configLog4Net()</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&n= bsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B Log =3D LogManager.GetL= ogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)</SPAN>= </PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B Log.Info("This is the start of the application.")</SPA= N></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B End Sub</SPAN></PRE><PRE><SPAN style=3D= "FONT-SIZE: 9pt"> </SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B Private Sub primeL= ogging()</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&n= bsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B If Not My.Settings.LogPath =3D "" Then<= /SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B _LogPath =3D My.Settings.LogPath</SPAN></PRE><PRE>= <SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B Else</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&n= bsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B _LogPath =3D My.Application.Info.D= irectoryPath &amp=3B "\Logs\"</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9p= t">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B End If</SPAN></PRE= ><PRE><SPAN style=3D"FONT-SIZE: 9pt"> </SPAN></PRE><PRE><SPAN style=3D"FONT= -SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B '[...]<= /SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt"> </SPAN></PRE><PRE><SPAN st= yle=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B _MaxRollBacks =3D My.Settings.MaxRollBacks</SPAN></PRE><PRE><SPAN style= =3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= _MaxFileSize =3D My.Settings.MaxFileSize</SPAN></PRE><PRE><SPAN style=3D"F= ONT-SIZE: 9pt"> </SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&n= bsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B _isAppendToFile =3D My.Settings= .isAppendToFile</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B _isStaticLogFile =3D My.Setting= s.isStaticLogFile</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B End Sub</SPAN></PRE= ><PRE><SPAN style=3D"FONT-SIZE: 9pt"> </SPAN></PRE><PRE><SPAN style=3D"FONT= -SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B Private Sub configLog4Net()</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: = 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B log4net.GlobalC= ontext.Properties("LogPath") =3D _LogPath</SPAN></PRE><PRE><SPAN style=3D"F= ONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B log4ne= t.GlobalContext.Properties("LogName") =3D _LogName</SPAN></PRE><PRE><SPAN s= tyle=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B log4net.GlobalContext.Properties("RollStyle") =3D _tempRollStyle</SPAN>= </PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B log4net.GlobalContext.Properties("MaxRollBacks") =3D _= MaxRollBacks</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B log4net.GlobalContext.Properties("= MaxFileSize") =3D _MaxFileSize</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9= pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B log4net.GlobalC= ontext.Properties("isAppendToFile") =3D _isAppendToFile</SPAN></PRE><PRE><S= PAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B log4net.GlobalContext.Properties("isStaticLogFile") =3D _isStaticL= ogFile</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B 'My attempts to cast as a boolean (did = not work)</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B 'log4net.Util.OptionConverter.ToBoole= an(log4net.GlobalContext.Properties("isAppendToFile")=2C _isAppendToFile)</= SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B 'log4net.Util.OptionConverter.ToBoolean(log4net= .GlobalContext.Properties("isStaticLogFile")=2C _isStaticLogFile)</SPAN></P= RE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B End Sub</SPAN></PRE><PRE><SPAN style=3D"FONT-S= IZE: 9pt"> </SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">'In Log4Net.con= fig (using a seperate configuration file for Log4Net)</SPAN></PRE><PRE><SPA= N style=3D"FONT-SIZE: 9pt">&lt=3B?xml version=3D"1.0" encoding=3D"utf-8" ?&= gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&lt=3Bconfiguration&g= t=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3BconfigSections&gt=3B</SPA= N></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bsection name=3D"log4net" type=3D"System.Conf= iguration.IgnoreSectionHandler" /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FON= T-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B &lt=3B/configSections&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: = 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt= =3BappSettings&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B!-- To enable intern= al log4net logging specify the following appSettings key --&gt=3B</SPAN></P= RE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B &lt=3Badd key=3D"log4net.Internal.Debug" value=3D"true"= /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B/appSettings&gt=3B</SPA= N></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B!-- This section contains the log= 4net configuration settings --&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-S= IZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B = &lt=3Blog4net&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B!-- Define some outp= ut appenders --&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bappender name=3D"Syn= cLogFile" type=3D"log4net.Appender.RollingFileAppender"&gt=3B</SPAN></PRE><= PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B &lt=3Bfile type=3D"log4net.Util.PatternString" value=3D"%proper= ty{LogPath}\Syncronizations\%property{LogName}" /&gt=3B</SPAN></PRE><PRE><S= PAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B &lt=3Bparam name=3D"DatePattern" value=3D".yyyy-MM-dd-tt.log"/&gt=3B<= /SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B &lt=3BappendToFile value=3D"%property{isAppendToFi= le}" /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3BmaxSizeRollBackups type=3D"log4= net.Util.PatternString" value=3D"%property{MaxRollBacks}" /&gt=3B</SPAN></P= RE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B &lt=3BmaximumFileSize type=3D"log4net.Util.PatternString" = value=3D"%property{MaxFileSize}" /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FO= NT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Broll= ingStyle type=3D"log4net.Util.PatternString" value=3D"%property{RollStyle}"= /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&n= bsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3BstaticLogFileName value=3D"%property= {isStaticLogFile}" /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Blayout type=3D"lo= g4net.Layout.PatternLayout"&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE= : 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bheader type= =3D"log4net.Util.PatternString" value=3D"**********************************= ****** Logging Started - %date ******************************************&a= mp=3B#13=3B&amp=3B#10=3B" /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE= : 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bfooter type= =3D"log4net.Util.PatternString" value=3D"**********************************= ****** Logging Ended - %date ******************************************&amp= =3B#13=3B&amp=3B#10=3B" /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: = 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3BconversionPatte= rn value=3D"%date [%thread] %-5level %logger [%ndc] - %message%newline" /&g= t=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B/layout&gt=3B</SPAN></PRE><PRE><SPAN st= yle=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B &lt=3B/appender&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bappender name=3D= "ErrLogFile" type=3D"log4net.Appender.FileAppender"&gt=3B</SPAN></PRE><PRE>= <SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B &lt=3Bfile type=3D"log4net.Util.PatternString" value=3D"%property{= LogPath}\Errors\errLog.txt" /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SI= ZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&n= bsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3BsppendToF= ile value=3D"%property{isAppendToFile}" /&gt=3B</SPAN></PRE><PRE><SPAN styl= e=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &l= t=3Blayout type=3D"log4net.Layout.PatternLayout"&gt=3B</SPAN></PRE><PRE><SP= AN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B &lt=3Bheader type=3D"log4net.Util.PatternString" value=3D"*************= *************************** Logging Started - %date ***********************= *******************&amp=3B#13=3B&amp=3B#10=3B" /&gt=3B</SPAN></PRE><PRE><SP= AN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B &lt=3Bfooter type=3D"log4net.Util.PatternString" value=3D"*************= *************************** Logging Ended - %date *************************= *****************&amp=3B#13=3B&amp=3B#10=3B" /&gt=3B</SPAN></PRE><PRE><SPAN= style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &lt=3BconversionPattern value=3D"%date [%thread] %-5level %logger [%ndc] &= amp=3Blt=3B%property{auth}&amp=3Bgt=3B - %message%newline" /&gt=3B</SPAN></= PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B &lt=3B/layout&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-S= IZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B/appe= nder&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bappender name=3D"ConsoleLog" ty= pe=3D"log4net.Appender.ConsoleAppender"&gt=3B</SPAN></PRE><PRE><SPAN style= =3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &l= t=3Blayout type=3D"log4net.Layout.PatternLayout"&gt=3B</SPAN></PRE><PRE><SP= AN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B &lt=3BconversionPattern value=3D"%date [%thread] %-5level %logger [%ndc= ] &amp=3Blt=3B%property{auth}&amp=3Bgt=3B - %message%newline" /&gt=3B</SPAN= ></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B &lt=3B/layout&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FON= T-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B/= appender&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bappender name=3D"EventLog= " type=3D"log4net.Appender.EventLogAppender"&gt=3B</SPAN></PRE><PRE><SPAN s= tyle=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &lt=3Blayout type=3D"log4net.Layout.PatternLayout"&gt=3B</SPAN></PRE><PRE>= <SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B &lt=3BconversionPattern value=3D"%date [%thread] %-5level %logger [%n= dc] &amp=3Blt=3B%property{auth}&amp=3Bgt=3B - %message%newline" /&gt=3B</SP= AN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B &lt=3B/layout&gt=3B</SPAN></PRE><PRE><SPAN style=3D"F= ONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B= /appender&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B!-- Setup the root catego= ry=2C add the appenders and set the default level --&gt=3B</SPAN></PRE><PRE= ><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B &lt=3Broot&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt= ">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Blevel value=3D"A= LL" /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bappender-ref ref=3D"SyncLogFile= " /&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&= nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bappender-ref ref=3D"ErrLogFile" /= &gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bappender-ref ref=3D"ConsoleLog" /&gt= =3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B= &nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nb= sp=3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bappender-ref ref=3D"EventLog" /&gt=3B</= SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbs= p=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B/root&gt=3B</SPAN></PRE><PRE><SPAN style= =3D"FONT-SIZE: 9pt">&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp= =3B&nbsp=3B &lt=3B/log4net&gt=3B</SPAN></PRE><PRE><SPAN style=3D"FONT-SIZE:= 9pt">&lt=3B/configuration&gt=3B</SPAN></PRE> <P class=3DEC_MsoNormal><SPAN style=3D"FONT-FAMILY: 'Verdana'=2C'sans-serif= '=3B FONT-SIZE: 9pt"><BR><BR><SPAN class=3DEC_value3>All of my other append= ers work (ConsoleLog=2C EventLog and ErrLogFile (when I remove the appendTo= File paramter).</SPAN><BR><BR><SPAN class=3DEC_value3>Please any assistance= would be most appreciated.</SPAN><BR><BR><SPAN class=3DEC_value3>Thanks=2C= </SPAN><BR><BR><SPAN class=3DEC_value3>-saige-</SPAN></SPAN></P></DIV><PRE> Do you have a disaster recovery plan for your servers? If not=2C ask about = We Are=20 IT's Total Rescue business continuity plan.</PRE><br /><hr />View your Twit= ter and Flickr updates from one place - <a href=3D'http://clk.atdmt.com/UKM= /go/137984870/direct/01/' target=3D'_new'>Learn more!</a></body> </html>= --_784951d3-a544-4cfb-9a4b-c198351d33b7_-- From log4net-user-returnjosephwilliams@example.com Sat Jun 06 00:23:49 2009 Return-Path: <log4net-user-returnjosephwilliams@example.com> Delivered-To: josephwilliams@example.com Received: (qmail 79917 invoked from network); 6 Jun 2009 00:23:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Jun 2009 00:23:48 -0000 Received: (qmail 37635 invoked by uid 500); 6 Jun 2009 00:24:00 -0000 Delivered-To: josephwilliams@example.com Received: (qmail 37535 invoked by uid 500); 6 Jun 2009 00:23:59 -0000 Mailing-List: contact josephwilliams@example.com; run by ezmlm Precedence: bulk list-help: <mailto:josephwilliams@example.com> list-unsubscribe: <mailto:josephwilliams@example.com> List-Post: <mailto:josephwilliams@example.com> Reply-To: "Log4NET User" <josephwilliams@example.com> List-Id: <log4net-user.logging.apache.org> Delivered-To: mailing list josephwilliams@example.com Received: (qmail 37518 invoked by uid 99); 6 Jun 2009 00:23:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jun 2009 00:23:59 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO p01c12o141.mxlogic.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jun 2009 00:23:47 +0000 Received: from unknown [83.161.120.155] (EHLO weareitnt3.WeAreIT.local) by p01c12o141.mxlogic.net (mxl_mta-6.2.0-4) with ESMTP id bf6b92a4.403.961.8953.511219.00-005.p01c12o141.mxlogic.net (envelope-from <josephwilliams@example.com>); Fri, 05 Jun 2009 18:23:25 -0600 (MDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_reb-r177E7EEF-t4A29B6FE" Subject: RE: How do I use dynamic boolean values on RollingFileAppender X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 5 Jun 2009 19:24:10 -0500 Message-ID: <josephwilliams@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How do I use dynamic boolean values on RollingFileAppender Thread-Index: AcnmCuitmhPS+BYlTVCSx8lFKUWB2QAMJwxl References: <josephwilliams@example.com> <josephwilliams@example.com> From: "Richard Fouts" <josephwilliams@example.com> To: "Log4NET User" <josephwilliams@example.com>, <josephwilliams@example.com>, <josephwilliams@example.com> X-Processed-By: Rebuild v2.0-0 X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2009052001)] X-MAIL-FROM: <josephwilliams@example.com> X-SOURCE-IP: [83.161.120.155] X-AnalysisOut: [v=1.0 c=1 a=zyy1L0F1CekA:10 a=s6l3MfuzEwcA:10 a=hLrENRVrh+] X-AnalysisOut: [eA9tr480Ib5Q==:17 a=Z6mLXQb4AAAA:8 a=69EAbJreAAAA:8 a=mV9V] X-AnalysisOut: [RH-2AAAA:8 a=WP5zsaevAAAA:8 a=r5JWEyTZAAAA:8 a=hG1ilDDYAAA] X-AnalysisOut: [A:8 a=56CuduyhQHHn2SvBmd0A:9 a=jp1ZIUODQBxVgf0znrgA:7 a=ko] X-AnalysisOut: [GkjvtZJvWZd5W-ZZJIcCwsI00A:4 a=wfa7_twklZ8A:10 a=ERQdzAOJf] X-AnalysisOut: [lMA:10 a=7Az1qgicPwYA:10 a=0hNcWgHQXocA:10 a=WcdFFF8jZaIA:] X-AnalysisOut: [10 a=EfJqPEOeqlMA:10 a=nW3kys7tnKkA:10 a=pT6HvvMeFjZ5BUq6d] X-AnalysisOut: [y0A:9 a=F3v1gG46dHlBJTWmw_EA:7 a=i6Yw4SH1yR__1J7Xo6Gtax1rX] X-AnalysisOut: [oUA:4] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part MIME message. --=_reb-r177E7EEF-t4A29B6FE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable As I stated in my post, it is not that the config file does not work, it do= es, the main problem is that the %property method does not seem to have the= ability to cast as anything other than a string. =20 I have tried to cast it directly in the program with no success becuase the= method that sets the property in the log4net.GlobalContext.Properties sets= the input as a string value. =20 But to clarify a few things that you mentioned. =20 The properties are set in the application at or durning runtime. These pro= perties need to be set before the GetLogger method is called. As long as t= he properties are set before the GetLogger method (hence my two sub calls t= o primeLogging [which fills the application variables with data from either= the My.Settings metabase or user entered data] and configLog4Net [which us= es the aforementioned log4net.GlobalContext.Properties method to set the pr= operty values in the Log4Net instance]. After the properties are set, the = GetLogger method fires and all of the properties are read and the Appenders= are generated. =20 All of my appenders work when I strip out all of the %properties that are n= on string based. Which means that I can set the log path and the log filen= ame dynamically but the boolean and int64 values will fail because log4net = does not cast these properties as anything other than string values, hence = the error in the stack trace: =20 Reported error follows. System.FormatException: String was not recognized as a valid Boolean. =20 One thing you did mention was possibly creating the xml file within the app= lication, this is feasible (so long as log4net does not put a file lock on = the config file). Another method I have been tinkering with (would rather = not use this method, but will if must) is to generate the appender directly= in the application by using the various getters and setters for the Rollin= gFileAppender. =20 Thanks for you input. =20 -Richard Fouts =20 Senior OS/Network Specialist We Are IT 11040 Holmes Road Kansas City, MO 64131 Phone: 403.961.8953 Fax: 403.961.8953 =20 http://www.we-are-it.com/ ________________________________ From: Karim Bourouba [mailto:josephwilliams@example.com] Sent: Fri 6/5/2009 1:20 PM To: josephwilliams@example.com; josephwilliams@example.com Subject: RE: How do I use dynamic boolean values on RollingFileAppender The properties you are using to create the logfile name, are these being ge= nerated by log4net? If they are, I dont think you are going to succeed, the= logfile needs to be created prior to logging commencing. The properties yo= u seem to be supplying wont exist at the point the you are trying to write = the file. =20 Also, is the .config file the best place to be doing this? Why not simply c= reate a file in the code if you really need to do this? I can understand wh= y you would want to dynamically name a log file, but the way you are going = about it probably isnt the best method. =20 ________________________________ Subject: How do I use dynamic boolean values on RollingFileAppender Date: Fri, 5 Jun 2009 10:01:18 -0500 From: josephwilliams@example.com To: josephwilliams@example.com; josephwilliams@example.com I have ran into a "small" brick wall. Hoping that I can find a couple of l= og4net guru's here. My situation. In trying to make my logging as configurable as possible in my application,= I have been tinkering with trying to set the boolean values for appendToFi= le and staticLogFileName as dynamic values. These have a default value (cu= rrently stored in the My.Settings metadata). My problem is that when I go = to configure the values at runtime I get this error in my stack trace: =20 =20 log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogF= ile] of type [log4net.Appender.RollingFileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not fo= und. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFi= le] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not fou= nd. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogF= ile] of type [log4net.Appender.RollingFileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not fo= und. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFi= le] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not fou= nd. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogF= ile] of type [log4net.Appender.RollingFileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not fo= und. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFi= le] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not fou= nd. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogF= ile] of type [log4net.Appender.RollingFileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not fo= und. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFi= le] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [ErrLogFile] not fou= nd. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [SyncLogF= ile] of type [log4net.Appender.RollingFileAppender]. Reported error follows. System.FormatException: String was not recognized as a valid Boolean. at System.Boolean.Parse(String value) at log4net.Util.TypeConverters.BooleanConverter.ConvertFrom(Object sourc= e) at log4net.Util.OptionConverter.ConvertStringTo(Type target, String txt) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ConvertStringTo= (Type type, String value) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.SetParameter(Xm= lElement element, Object target) at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(X= mlElement appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender named [SyncLogFile] not fo= und. log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [ErrLogFi= le] of type [log4net.Appender.FileAppender]. Reported error follows. System.FormatException: String was not recognized as a
{'source': 'Apache Software Foundation Public Mail Archives'}