RE: is there anything in log4j that can enable me to do this.....?

2003-06-26 Thread Shapira, Yoav

Howdy,
You can use sockets (appender / receiver / or hub) the whole way.  You
can also use the JMSAppender/JMSSink.  You're right this is doable using
log4j.  Check out how chainsaw works.

Log4j 1.3 will have even more support for this, via pluggable Receivers
for logging events.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 5:26 AM
To: [EMAIL PROTECTED]
Subject: is there anything in log4j that can enable me to do this.?

Hello people!

I been wondering about a requirement i have.  I am sure it can probably
be
done using log4j using Socket/JMS Appender???
But thought i check if its possible to do this in log4j (i am no expert
in
the advanced topics of log4j):

-  Receive alert messages over TCP/IP from another application.

- Format the information as required and send it to the appropriate 3rd
party tool.


Am i right We can do this using the Appenders i mentioned
above??//


Thanks for any help you can give.

___


 The information transmitted is intended only for the person or entity
to
which it is addressed and may contain confidential and/or privileged
material. Statements and opinions expressed in this e-mail may not
represent those of the company. Any review, retransmission,
dissemination
or other use of, or taking of any action in reliance upon, this
information
by persons or entities other than the intended recipient is prohibited.
If
you received this in error, please contact the sender immediately and
delete the material from any computer. This e-mail may be read by an
employee of the company as part of the internal monitoring process and
is
therefore not to be considered private by the sender or the recipient.



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: is there anything in log4j that can enable me to do this.....?

2003-06-26 Thread Paul Smith
 Thanks for ur advice Yoav,
 
  pluggable Receivers for logging events... whats this???
 

Hi Michael, 

Receivers are the sibling of Appenders.  Appenders take an event from Log4j
and take them outside the log4j environment (to a file, socket, JMS topic,
SMTP etc).  Receivers take an external event (say, from a Socket) and push
or 'post' them into their local Log4j environment.  Receivers are great for
getting hold of Log4j events from a remote location.  Chainsaw uses them
extensively.

If Chainsaw wasn't enough to help you monitor events from a remote location,
you could always mimic something by writing it yourself.  Write a program
that configures Log4j to use a Receiver to suck external events into the
programs local log4j environment, then configure appenders in that same
local log4j environment configured to catch the events you're interested in
and react accordingly.  (this is all Chainsaw does! :) )

Paul Smith

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