>       <layout type="log4net.Layout.PatternLayout"
> value="%property{spid}" /> </parameter>

If spid is set to null, I would expect an empty string to be returned.
I did some testing with the MDC on 1.2.0 beta 8:

 log4net.MDC.Set("UserIdentityName", null);

When I use this layout:

<layout type="log4net.Layout.PatternLayout,log4net">
 <conversionPattern value="[%X{UserIdentityName}] sample message%n" />
</layout>

I see "[] sample message" in my log.

Reply via email to