Create a file named (ip address.lcf, i.e., 192.216.253.116.lcf. This is the
host that generated the log message and sent to SocketAppender) in a
directory on a machine where SocketServer is running. This file can contain
all the config info. IMHO, this is a good way as you can change the config
without changing the code.

It is working well for our EJB servers

-----Original Message-----
From: Atte A [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 9:52 AM
To: [EMAIL PROTECTED]
Subject: SocketAppender


Hi all!

I want to use the SocketAppender (because of EJB and avoiding java.io 
calling).

I also want to use org.apache.log4j.net.SocketServer to listen to messages.

I want to log to two or more different files. Where do I put the info about 
destination files, maxfile size, MaxBackupIndex, PatternLayout and 
ConversionPattern?

Should I put it in a property configuration file (host.lcf) or should I 
programmatically configure that information (s.setOption()) ?

Thanks in advance.

/Atay

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to