The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.
| Author |
Messages |
|
Pedro Checo
 |
| 07/27/2009 5:15 PM |
|
Hi.
Suppose that a FileAppender in use is set to log to a directory for which it has no write or create rights, what will it do, where will the log files be created?
We have a situation where, depending on the user, the process that owns the log4net logger instance will not be able to write to the designated directory for the FileAppender. In later versions of the application, we may resolve this before log4net is initialized, but our current version doesn’t have that ability at present.
Regards and thank you for publishing this comprehensive library.
Regards. |
|
|
|
|
Ron Grabowski
 |
| 07/30/2009 3:00 AM |
|
If a logger can't write to its destination it will notify its ErrorHandler and go offline. You should be able to bring it back online by resetting its ErrorHandler and calling ActivateOptions. I don't have the source in front of me so I can't give a concrete example.
|
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|