You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by Pradeeptp <pr...@hotmail.com> on 2008/09/11 14:27:02 UTC
Same file read/write from Multiple process
Hi All,
I am considering to use Log4Net in a web service to write to a single log
file. I want to know whether writing to a single file in this manner through
Log4Net is safe. The current code I have implemented is in C# in which I am
writing to a single file which gives me error "The process cannot access the
file XXXXX because it is beign used by another process"
To resolve the above problem I am considering using Log4Net. If anyone has
any experience in using Log4Net please confirm me that this error will not
happen in Log4Net.
Thanks
pradeeptp
--
View this message in context: http://www.nabble.com/Same-file-read-write-from-Multiple-process-tp19433666p19433666.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.
Re: Same file read/write from Multiple process
Posted by Pradeeptp <pr...@hotmail.com>.
Hi Ron,
I checked the link provided by you. The document says that MinimalLock is
not thread safe.
(PS: I clicked on your reply but I didnt see any reply link to reply to your
message, so I am replying to my own message).
rgds
Pradeep
Pradeeptp wrote:
>
> Hi All,
>
> I am considering to use Log4Net in a web service to write to a single log
> file. I want to know whether writing to a single file in this manner
> through Log4Net is safe. The current code I have implemented is in C# in
> which I am writing to a single file which gives me error "The process
> cannot access the file XXXXX because it is beign used by another process"
>
> To resolve the above problem I am considering using Log4Net. If anyone
> has any experience in using Log4Net please confirm me that this error will
> not happen in Log4Net.
>
> Thanks
> pradeeptp
>
--
View this message in context: http://www.nabble.com/Same-file-read-write-from-Multiple-process-tp19433666p19506715.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.