You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Ron Grabowski <ro...@yahoo.com> on 2007/08/03 04:54:51 UTC
Re: what will the inlisted changes in log4net code affect
Did you accidently post this to the log4net list or do 1., 2., 3., 5. mean something?
----- Original Message ----
From: pooja rawat <pr...@chambal.com>
To: log4net-user@logging.apache.org
Sent: Friday, July 27, 2007 9:09:18 AM
Subject: what will the inlisted changes in log4net code affect
1.
remove the extra catch block used
like a catch block from the code below
catch(Exception ex)
{
log4net.Util.LogLog.Warn("StringFormat: Exception while rendering format
["+format+"]", ex);
return StringFormatError(ex, format, args);
}
catch
{
log4net.Util.LogLog.Warn("StringFormat: Exception while rendering format
["+format+"]");
return StringFormatError(null, format, args);
}
2.
Change in config.cs
System.Web.HttpContext.GetConfig(string)
to
System.Web.HttpContext.GetSection (string)
3.
in Progressbar.cs , Progresspage.cs
Add
Type cstype = this.GetType();
and Change
Page.RegisterClientScriptBlock("NeatUploadProgressBar", clientScript);
to
Page.ClientScript.RegisterClientScriptBlock(cstype,"NeatUploadProgressBar",
clientScript);
5.
in log4Net\Layout\XMLLayout.cs
change
writer.WriteAttributeString(ATTR_TIMESTAMP,
XmlConvert.ToString(loggingEvent.TimeStamp));
to
writer.WriteAttributeString(ATTR_TIMESTAMP,
XmlConvert.ToString(loggingEvent.TimeStamp,
XmlDateTimeSerializationMode.Local));
6.
Use
System.Net.Mail;
instead of
System.Web.Mail;
--
View this message in context: http://www.nabble.com/what-will-the-inlisted-changes-in-log4net-code-affect-tf4157640.html#a11828745
Sent from the Log4net - Users mailing list archive at Nabble.com.