Thanks Nicko for the info.
Regards
Kapil Sachdeva
http://www.dotnetcard.com/blogs/ksachdeva
----- Original Message ----- From: "Nicko Cadell" <[EMAIL PROTECTED]>
To: "Log4NET User" <[email protected]>
Sent: Friday, January 28, 2005 4:53 PM
Subject: RE: FileAppender & RemoteLoggingServerPlugin
If you don't need to log to the same file then you should not use the RemotingAppender + separate process with RemoteLogginServerPlugin, that is far to heavyweight a solution.
In 1.2 beta 8 there is no way to easily configure different files names on a per process basis. The only ways to do this are to either subclass the FileAppender and override the File property to add the process id to the file name, or to programmatically create the appender, setting the File property to a unique filename.
This will simplified in future using the (CVS only) PatternString type in the config file.
Nicko
-----Original Message-----
From: Kapil Sachdeva [mailto:[EMAIL PROTECTED] Sent: 28 January 2005 21:25
To: Log4NET User
Subject: Re: FileAppender & RemoteLoggingServerPlugin
Well Nicko isn't it little bit of tough sell if I am going to use the stuff in commerical product and have one application (Windows/NT service) always running so in case logging is enabled this app may receive the log ? ............ Speaking of myself only, I am not comfortable with this setup.
Can you suggest any other way ? .... I was thinking may be to write my own appender mostly like FileAppender (basically inheriting it like
RollingFileAppender) and in this appender I read the name of file (lets say "mylog.txt") from the configuration but create a file by the name of mylog_ProcessID.txt. I do not have a requirement that all processes should log to the same file.
May be you can suggest more elegant way of doing this !!.
Regards & thanks
Kapil Sachdeva http://www.dotnetcard.com/blogs/ksachdeva ----- Original Message ----- From: "Nicko Cadell" <[EMAIL PROTECTED]> To: "Log4NET User" <[email protected]> Sent: Friday, January 28, 2005 3:25 PM Subject: RE: FileAppender & RemoteLoggingServerPlugin
> As we all know that FileAppender locks the file when logging > is ON and another process can not acquire handle of the file. > You recommend solution to it by using > RemoteLogginServerPlugin. My understanding for this is that > you will have deploy a remoting server application (which is > always running) to do this.
That is correct.
>
> Please correct me if I am not clear about RemoteLogginServerPlugin.
>
>
> Kapil Sachdeva
> http://www.dotnetcard.com/blogs/ksachdeva
>
