The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.
| Author |
Messages |
|
DWTebriel
 |
| 03/17/2009 2:59 PM |
|
I'm currently trying to get log4net to dynamically add emails to an SmtpAppender during runtime using the ThreadContext. I can set values to the ThreadContext.Properties dictionary without a problem. I can also refer to them in most instances through the appender. The values will show up within the pattern layout section. However when I use a PatternString on a to field for the SmtpAppender, the property field isn't parsed correctly at all. This happens on both the ThreadContext and GlobalContext. I threw together a small unit test to get a working example going. Any ideas?
|
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|