Now it works, but the mystery remains. Apparently, the belly of the Chinese buffet is the only solution to such a problem, since I had one, the problem disappeared.
My test program was the only file with
class Test { static void Main (string[] args) { . .
When I had a problem, I was recording in Main() . Subsequently, I created a method of the Test class, an instance of the Test class in Main, and moved the record to the method. This fixed the problem:
class Test { static void Main (string[] args) { var p = new Test(); p.Go (); } public void Go () { .
This is still unconvincing. I moved it the way it was originally, and it started working. So, I must conclude that the answer to this riddle is: Do not try to use the first log4net test programs without the belly of Chinese food.
source share