Your daily dose of Java and related technologies.
News, Releases, Reviews, Tutorials, Articles, Events, Contests, Comments, Code and much more.
This java weblog is maintained by Xyling Technologies, making life simpler.

Thursday, April 19, 2007

RSS feed of your application logs.

How about getting RSS updates of your application logs?

Heres a sample and simple Log4J RSS appender.
The RSS Appender binary can be downloaded from the title of this page.

1. to log4j.appender.rss=org.lorecraft.rssappender.RSSAppender
2. log4j.appender.rss.port=1234
3. log4j.appender.rss.maxSize=10
4. log4j.appender.rss.layout=org.apache.log4j.PatternLayout
5. log4j.appender.rss.layout.ConversionPattern=%d {ABSOLUTE} %5p %c {1}: %L - %m%n
6. log4j.rootLogger=info, rss

Other related XJB entries:
Receive Application Errors via Yahoo Messenger
Quick Start Using Log4J
Build Flexible Logs With log4j
Log4E - Free Log4j plugin for Eclipse


[Resource-Type: Source Code; Category: J2EE/Log4J; XRating: 4]

4 Comments:

Blogger Rajneesh Garg said...

Hi,

I tried and could not see any rss output.
I put jar in the JBoss classpath, added a new appender in log4j.xml and upon restarting JBoss, could see only "The page cannot be displayed".

5:04 AM

 
Blogger Xyling Technologies said...

Did you check the port? In this example it is 1234.

5:06 AM

 
Blogger Rajneesh Garg said...

yes, port was unchanged (i.e. 1234). did u get the rss output? what was your log4j.xml entries?

5:15 AM

 
Blogger Xyling Technologies said...

This is the URL you need to hit
http://localhost:1234/rss

I am yet to integrate it. I blogged it for my reference.
Please do come back and post in case you get some solution. It would help me and others too.

Please refer the original blog entry here:
http://www.iago-soft.com/blog/index.php?tag=rss
You may use google translation for the same.

6:02 AM

 

Post a Comment

<< Home