You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Cerizza, Giordano" <gc...@utk.edu> on 2008/05/05 03:30:43 UTC
loading more receivers
Hi,
I have five different independent applications that send error messages to the same Chainsaw into one receiver and
everything works fine. In general, I have a xml file, that loads when launching Chainsaw, that allows me to have all
the parameters for the receiver instantiated at the start up. The code for the receiver looks like:
<plugin name="logFileReceiver" class="org.apache.log4j.net.XMLSocketReceiver">
<param name="name" value="pixelFED" />
<param name="port" value="1970" />
<param name="threshold" value="INFO" />
</plugin>
Now I would like to have for each application its own receiver on the same port.
If I'd like to have more receivers on the same port but with different name, is there a way I can implement this via
xml config file instead of my hand? I tried by hand and it works but I would like to automatize this process.
Thanks a lot
ciao
giordano
RE: loading more receivers
Posted by Scott Deboy <sd...@comotivsystems.com>.
The latest versions of the network-based appenders support an
'application' property - if each of your applications define the
application property, they'll show up in their own tab - you should be
able to continue to use the receiver config listed below.
Does that help?
Scott
-----Original Message-----
From: Cerizza, Giordano [mailto:gcerizza@utk.edu]
Sent: Sunday, May 04, 2008 6:31 PM
To: log4j-user@logging.apache.org
Subject: loading more receivers
Hi,
I have five different independent applications that send error messages
to the same Chainsaw into one receiver and
everything works fine. In general, I have a xml file, that loads when
launching Chainsaw, that allows me to have all
the parameters for the receiver instantiated at the start up. The code
for the receiver looks like:
<plugin name="logFileReceiver"
class="org.apache.log4j.net.XMLSocketReceiver">
<param name="name" value="pixelFED" />
<param name="port" value="1970" />
<param name="threshold" value="INFO" />
</plugin>
Now I would like to have for each application its own receiver on the
same port.
If I'd like to have more receivers on the same port but with different
name, is there a way I can implement this via
xml config file instead of my hand? I tried by hand and it works but I
would like to automatize this process.
Thanks a lot
ciao
giordano
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org