You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "DaBuddhaMan (JIRA)" <ji...@apache.org> on 2006/08/24 22:16:07 UTC
[jira] Updated: (LOG4NET-91) [PATCH] Add layout param to
RenderLoggingEvent function of AppenderSkeleton class
[ http://issues.apache.org/jira/browse/LOG4NET-91?page=all ]
DaBuddhaMan updated LOG4NET-91:
-------------------------------
Attachment: AppenderSkeleton.cs.diff
Description:
If you want to use layouts on other places then the Layout Property, for example if you want to implement a NonBufferedSmtpAppender to use a pattern layout for the subject of the mail message instead of a simple string:
public ILayout Subject
{
get { return m_subject; }
set { m_subject = value; }
}
with configuration like this:
<appender name="smtp" type="log4net.Appender.SmtpAppender, log4net">
<to value="test@test.com" />
<from value="Test Program" />
<subject>
<conversionPattern value="LOGMSG: [%logger] %level" />
</subject>
it would be great that we can reuse some code of the AppenderSkeleton class:
So it would be great to add a layout param to the RenderLoggingEvent function.
--> RenderLoggingEvent(TextWriter writer, LoggingEvent loggingEvent, ILayout layout)
see the attachment
was:
If you want to use layouts on other places then the Layout Property, for example if you want to implement a NonBufferedSmtpAppender to use a pattern layout for the subject of the mail message instead of a simple string:
public ILayout Subject
{
get { return m_subject; }
set { m_subject = value; }
}
with configuration like this:
<appender name="smtp" type="log4net.Appender.SmtpAppender, log4net">
<to value="itmon@hhr.be" />
<from value="Test Program" />
<subject>
<conversionPattern value="LOGMSG: [%logger] %level" />
</subject>
it would be great that we can reuse some code of the AppenderSkeleton class:
So it would be great to add a layout param to the RenderLoggingEvent function.
--> RenderLoggingEvent(TextWriter writer, LoggingEvent loggingEvent, ILayout layout)
see the attachment
> [PATCH] Add layout param to RenderLoggingEvent function of AppenderSkeleton class
> ---------------------------------------------------------------------------------
>
> Key: LOG4NET-91
> URL: http://issues.apache.org/jira/browse/LOG4NET-91
> Project: Log4net
> Issue Type: Improvement
> Affects Versions: 1.2.10
> Reporter: DaBuddhaMan
> Attachments: AppenderSkeleton.cs.diff, AppenderSkeleton.cs.diff, AppenderSkeleton.cs.diff
>
>
> If you want to use layouts on other places then the Layout Property, for example if you want to implement a NonBufferedSmtpAppender to use a pattern layout for the subject of the mail message instead of a simple string:
> public ILayout Subject
> {
> get { return m_subject; }
> set { m_subject = value; }
> }
> with configuration like this:
> <appender name="smtp" type="log4net.Appender.SmtpAppender, log4net">
> <to value="test@test.com" />
> <from value="Test Program" />
> <subject>
> <conversionPattern value="LOGMSG: [%logger] %level" />
> </subject>
> it would be great that we can reuse some code of the AppenderSkeleton class:
> So it would be great to add a layout param to the RenderLoggingEvent function.
> --> RenderLoggingEvent(TextWriter writer, LoggingEvent loggingEvent, ILayout layout)
> see the attachment
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira