Set the required values at runtime:
log4net.GlobalContext.Properties["mailHost"] = /*something*/
Use a corresponding property in the config file:
<smtpHost type="log4net.Util.PatternString" value="%property{mailHost}"/>
A place for me to put reminders, tips, tricks and 'gotchas' about software development. It's all public in case others might find it useful.
log4net.GlobalContext.Properties["mailHost"] = /*something*/
<smtpHost type="log4net.Util.PatternString" value="%property{mailHost}"/>
No comments:
Post a Comment