加上下面的一句就好了
[TestCleanup]
public void cleanup()
{
CallContext.FreeNamedDataSlot("log4net.Util.LogicalThreadContextProperties");
}
Ref:https://stackoverflow.com/questions/23661372/log4net-logicalthreadcontext-and-unit-test-cases