[ http://issues.apache.org/jira/browse/LOG4NET-91?page=all ]

DaBuddhaMan updated LOG4NET-91:
-------------------------------


Probably not such a good suggestion after all!!!

can also just use 

ILayout.Format(
   TextWriter writer,
   LoggingEvent loggingEvent);

> [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="[email protected]" />
>       <from value="Test Program" />
>       <subject type="log4net.Layout.PatternLayout, log4net">
>               <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

        

Reply via email to