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 |
|
Ranjan, Bibhakar
 |
| 01/27/2009 12:39 PM |
|
Hello,
I have two applications let’s say WindowApp1 and WindowApp2 and both are writing to the same log file let’s say “c:\abc.txt”.
With log4net can it be possible to write to the same log file by both these app at the same time? I tried but couldn’t able to do that.
Please help!!
Thanks,
Bibhakar
|
|
|
|
|
Johannes Frank
 |
| 01/27/2009 1:12 PM |
|
Since Files can only be write-opened once at a time, this sounds technically impossible.. if you want such a thing you should create your own appender that communicates with a seperate process that manages the request merging (so that only this process is writing to the file, therefore circumventing multiple write-handler requests from the actual logging software)
Mit freundlichen Grüßen / Regards Johannes Frank
|
|
|
|
|
Radovan Raszka
 |
| 01/27/2009 1:25 PM |
|
Or use diferent log storage, which allows concurent usage - for example database with AdoNetAppender.
Radovan |
|
|
|
|
Stefan Bodewig
 |
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|