Subscribe via RSS for log4j magazines?

Is it possible to subscribe to url with log4j logs? I understand that many applications log error messages daily via email. But the problem with this approach is that the server hosting the application may not provide smtp capabilities. Thus, RSS signatures subscribe to more flexible ones.

Does anyone know how to do this?

+3
source share
3 answers

The log4j RSS application has already been recorded. Take a look at http://code.google.com/p/rssappender/

+4
source

- log4j ( log4net ), - ( ). , RSS-.

+1

The easiest way would be to write a custom Log4J appender (not hard, just a subclass of WriterAppender) that converts LoggingEvents into RSS format and saves them in a file on disk. Each time he receives a new event, downloads an existing file, analyzes it, adds a new RSS entry and writes it back. Then use the web server to work with the RSS server.

It will not scale well, but if you have a large number of magazine events, then RSS itself is not a good choice.

+1
source

Source: https://habr.com/ru/post/1697653/


All Articles