logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Diehl Martin, Köln" <martin.di...@fja.com>
Subject RE: Logging in Clusters
Date Tue, 21 Aug 2001 13:13:05 GMT
Hi Ganapathi,

I think the reason is that the property is called 'remoteHost' not 'Host',
this is working on my machines:

log4j.appender.server.remoteHost=susi15
log4j.appender.server.port=6789

Ciao
	Martin.
> -----Original Message-----
> From:	Ganapathi Raman [SMTP:mail2ganapathi@yahoo.com]
> Sent:	Tuesday, August 21, 2001 3:15 PM
> To:	LOG4J Users Mailing List; ttm@online.no
> Subject:	RE: Logging in Clusters
> 
> 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 <ttm@online.no> wrote:
> > Hi Ganapathi 
> > 
> > Have you considered a log-server?
> > 
> > See the org.apache.log4j.net package.
> > 
> > --
> > 
> > Thomas
> > 
> > 
> > 
> > | -----Original Message-----
> > | From: Ganapathi Raman
> > [mailto:mail2ganapathi@yahoo.com]
> > | Sent: 20 August 2001 05:19
> > | To: log4j-user@jakarta.apache.org
> > | 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:
> > log4j-user-unsubscribe@jakarta.apache.org
> > | For additional commands, e-mail:
> > log4j-user-help@jakarta.apache.org
> > | 
> > | 
> > 
> > 
> >
> *************************************************************************
> > 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:
> > log4j-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > log4j-user-help@jakarta.apache.org
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message