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 Scott Deboy <sd...@comotivsystems.com> on 2005/09/18 09:31:09 UTC

IRCAppender

Find IRCAppender source, jar and config file here:
http://wiki.apache.org/logging-log4j/UsefulCode

You specify the server, channel, nickname and layout of the messages sent to the channel.

Warning: Servers may disconnect you for sending too many messages in a channel in a short amount of time.  I'd suggest configuring the appender with an ERROR level.

Scott 


-----Original Message-----
From: Schuweiler, Joel J. [mailto:Schuweiler.Joel@mayo.edu]
Sent: Fri 9/16/2005 9:22 AM
To: 'Log4J Users List'
Subject: RE: Article: Yahoo Messenger Appender
 
Well it would be up to the developer of the project to use log4j in their project and they would probably also hard code in configuration information, etc. etc.

I just mean that giving the developer the option to let users return exception information in an easy to retrieve way would be very helpful. Lots of people get errors but never report them. 

-----Original Message-----
From: log4j-user-return-16326-schuweiler.joel=mayo.edu@logging.apache.org [mailto:log4j-user-return-16326-schuweiler.joel=mayo.edu@logging.apache.org] On Behalf Of Scott Deboy
Sent: Friday, September 16, 2005 11:30 AM
To: Log4J Users List
Subject: RE: Article: Yahoo Messenger Appender

The developers on the channel may not like that so much! (depending on
how many users configure the appender to send errors to the channel)

-----Original Message-----
From: Schuweiler, Joel J. [mailto:Schuweiler.Joel@mayo.edu] 
Sent: Friday, September 16, 2005 9:08 AM
To: 'Log4J Users List'
Subject: RE: Article: Yahoo Messenger Appender

I looked at using jabber here but quickly decided no because of my
limited needs for an open source jabber server for windows which worked
half way decently.

While I would have that same issue on irc, I could see an irc logger
being an awesome thing to have especialy with servers like
irc.freenode.net. Give the users the ability to log exceptions to said
development channels.
 

-----Original Message-----
From:
log4j-user-return-16324-schuweiler.joel=mayo.edu@logging.apache.org
[mailto:log4j-user-return-16324-schuweiler.joel=mayo.edu@logging.apache.
org] On Behalf Of Scott Deboy
Sent: Friday, September 16, 2005 11:12 AM
To: Log4J Users List
Subject: RE: Article: Yahoo Messenger Appender

I forgot another receiver: IRCReceiver.  There's no IRCAppender yet,
I'll write it shortly.

The receiver does let you use Chainsaw as an IRC client (useful for
filtering/searching/routing of messages to tabs, etc.).

Each IRC server is a separate tab, and each IRC channel is a top-level
logger.

See a screenshot and get source code here:
http://wiki.apache.org/logging-log4j/ChainsawHelp

I'll add Jabber and JXTA appenders and receivers eventually as well.
May not be useful to anyone, but there you go.

Scott

-----Original Message-----
From: Schuweiler, Joel J. [mailto:Schuweiler.Joel@mayo.edu]
Sent: Friday, September 16, 2005 8:22 AM
To: 'Log4J Users List'
Subject: RE: Article: Yahoo Messenger Appender

Someone has to make the first move in the dance ;) 

-----Original Message-----
From:
log4j-user-return-16322-schuweiler.joel=mayo.edu@logging.apache.org
[mailto:log4j-user-return-16322-schuweiler.joel=mayo.edu@logging.apache.
org] On Behalf Of Scott Deboy
Sent: Friday, September 16, 2005 9:26 AM
To: Log4J Users List
Subject: RE: Article: Yahoo Messenger Appender

correction:

If other frameworks started writing receivers, then there would be a
reason to write an XMLSocketAppender.

-----Original Message-----
From: Scott Deboy [mailto:sdeboy@comotivsystems.com]
Sent: Fri 9/16/2005 7:21 AM
To: Log4J Users List
Subject: RE: Article: Yahoo Messenger Appender
 
There is an XMLSocketReceiver that can accept events from log4cxx,
log4perl, java.util.logging and log4php.  UDPReceiver can be used to
accept events from log4net.  

They all leverage the log4j.dtd (except java.util.logging of course, in
which case you specify a UtilLogging XMLDecoder on the receiver side).

I didn't write an XMLSocketAppender because log4j already provides a way
to send events over TCP: SocketAppender. 

If other frameworks started writing receivers, then there would be a
reason to write an XMLSocketReceiver.

Scott

-----Original Message-----
From: Schuweiler, Joel J. [mailto:Schuweiler.Joel@mayo.edu]
Sent: Fri 9/16/2005 6:36 AM
To: 'Log4J Users List'
Subject: RE: Article: Yahoo Messenger Appender
 
If I were to "brag" or write an article on an up and coming appender I
would like to see one that works across all the log4* stuff. A socket
appender which doesn't serialize objects but communicates in a
pre-determined way.

After all, java is operating system independent, why not make it
programming language independent (in the log4j sense) too?

I know how hard it would be to get the log4* projects to decide on one
way, but it's a thought. 

-----Original Message-----
From:
log4j-user-return-16319-schuweiler.joel=mayo.edu@logging.apache.org
[mailto:log4j-user-return-16319-schuweiler.joel=mayo.edu@logging.apache.
org] On Behalf Of Venkatray Kamath
Sent: Friday, September 16, 2005 8:33 AM
To: 'Log4J Users List'
Subject: RE: Article: Yahoo Messenger Appender

Also I also guess ym doesn't receive the message from same user more
than 2 times unless the receiver responds back with some message.



-----Original Message-----
From: Schuweiler, Joel J. [mailto:Schuweiler.Joel@mayo.edu]
Sent: Friday, September 16, 2005 7:00 PM
To: 'Log4J Users List'
Subject: RE: Article: Yahoo Messenger Appender

Re-connect everytime since you're making the new YahooMessengerAPI every
time.
Seems a bit taxing.

-----Original Message-----
From:
log4j-user-return-16317-schuweiler.joel=mayo.edu@logging.apache.org
[mailto:log4j-user-return-16317-schuweiler.joel=mayo.edu@logging.apache.
org]
On Behalf Of Ron Grabowski
Sent: Friday, September 16, 2005 8:29 AM
To: Log4J Users List
Subject: Re: Article: Yahoo Messenger Appender

 protected void append(LoggingEvent event) {
  new  YahooMessengerAPI().sendYahooIM(
   getFromYahooId(),
   getFromYahooIdPassword(),
   getToYahooId(),
   (String)event.getMessage());
 }

I wonder if that keeps the YIM client logged in while the application is
running or if it connects and disconnects for each message?

--- James Stauffer <st...@gmail.com> wrote:

> http://today.java.net/pub/a/today/2005/09/16/errors-via-yahoo-im.html
> --
> James Stauffer
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org

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

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

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

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





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


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

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


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

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