Hi Thomas..
Thanx for that tip...I did try the SocketServer
provided by log4j and used a SocketAppender to log
messages...was succesful indeed:)
One observation is that when using SocketAppender
logging was very slow..i used the same machine as a
server as well as a client..is logging over network
generally slow or probably the network speed at the
time i tested was the culprit...
Another question...hope i am not aiming for the
stars!!
For an application, can we also define SocketAppenders
in a config file and load it using
PropertyConfigurator...i tried it (a blind shot
only!!) by giving the following...
#Set root category priority to DEBUG and its only
#appender to A1
log4j.rootCategory=WARN,A1
# A1 is set to be a SocketAppender which outputs to
#the port at which the server is listening
log4j.appender.A1=org.apache.log4j.net.SocketAppender
log4j.appender.A1.Host=localhost
log4j.appender.A1.Port=7777
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t]
%-5p %c - %m%n
and also got the following message on the console
where i ran my client..
log4j:WARN No such property [host] in
org.apache.log4j.net.SocketAppender.
Can someone please help me out in this regard....
Thanks in advance,
Ganapathi.
--- Thomas Tuft Muller <[EMAIL PROTECTED]> wrote:
> Hi Ganapathi
>
> Have you considered a log-server?
>
> See the org.apache.log4j.net package.
>
> --
>
> Thomas
>
>
>
> | -----Original Message-----
> | From: Ganapathi Raman
> [mailto:[EMAIL PROTECTED]]
> | Sent: 20 August 2001 05:19
> | To: [EMAIL PROTECTED]
> | Subject: Logging in Clusters
> |
> |
> | Hi,
> |
> | I am a newbie to log4j. I had tried the basic
> logging
> | mechanism in an application in Weblogic 6.0 and
> was
> | succesful too:)!!
> |
> | I have a doubt regarding logging messages from
> | Enterprise beans. I did come upon articles where
> | people advised not to use logging in files in EJB
> | environment (while suggesting a DB logging). This
> is
> | attributed to the fact that when clustering is
> done,
> | the logs may be done in several machines as the
> EJB
> | server may distribute the Enterprise beans across
> | physical machines.
> |
> | Can anyone suggest how this can be handled using
> | log4j. Also if u can help me with a sample code,
> it
> | would be useful.
> |
> | Thanks and regards,
> | Ganapathi.
> |
> | __________________________________________________
> | Do You Yahoo!?
> | Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> | http://phonecard.yahoo.com/
> |
> |
>
---------------------------------------------------------------------
> | To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> | For additional commands, e-mail:
> [EMAIL PROTECTED]
> |
> |
>
>
>
*************************************************************************
> Copyright ERA Technology Ltd. 2001. (www.era.co.uk).
> All rights reserved.
> Confidential. No liability whatsoever is accepted
> for any loss or damage
> suffered as a result of accessing this message or
> any attachments.
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]