Reputation: 43
I have the configuration for log4net in the xml file. This includes a file appender with a default file path. At startup I get from backend a new file path that I change in configuration.
Now it happens that from time to time the log messages end up in the default file. Usually after several hours of uptime and for several hours, then the path switches back again.
There is no program restart and no other change of the appender.
Upvotes: 0
Views: 72
Reputation: 27944
It seems you read the configuration from multiple places, or something is overriding your configuration file. Enable internal debugging to see what is happening in the log4net its logs.
Upvotes: 1