I'm trying to customise a log4net file path to use a property I have set in the log4net.GlobalContext.Properties
dictionary.
log4net.GlobalContext.Properties["LogPathModifier"] = "SomeValue";
I can see that this value is set correctly when debugging through it. and then in my configuration
<file type="log4net.Util.PatternString"
value="Logs\%appdomain_%property{LogPathModifier}.log" />
However, the output of this gives me "_(null).log" at the end of the path. What gives?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…