The org.jboss.logging.Log4jSocketServer MBean, which is not configured by default, can be used as the target of org.apache.log4j.net.SocketAppender to collect output from mulitple sources in a central location. The Log4jSocketServer uses a thread per client that does a MDC.put("host", clientSocket.getInetAddress().getHostName()) so that output can be distiguished.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 7:59 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Logging through JBoss from an external source I would like to consolidate the logs from several processes, so that I have only a single log file. (Let's ignore archiving, etc. for now.) Being relatively new to JBoss, EJBs, etc., I'm looking for advice as to the best way to do this. Right now, I'm considering having a logging session bean that the external processes will call when they want to log. This session bean will then use log4j. Are there better ways? I noticed that there is a Log4jService MBean. I know almost nothing about MBeans. Is there a way I can access that to do logging, or is that exclusively for "management" operations of some sort? Thanks in advance, Keith ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user