Can you just use the JMS appender from Log4j 2?

On 3 November 2016 at 13:10, Brad Johnson <[email protected]>
wrote:

> I'm trying to find a good mechanism for intercepting logging events to
> fire them off to an AMQ queue for consumption elsewhere.  I don't really
> want to scrape log files for a number of reasons (obvious I think).\
>
> I'm in karaf using AMQ and the Red Hat stack - with many of the items from
> Fuse but not all.
>
> I had one fairly successful way of doing this which simply implemented the
> same interface as the Logger itself and when the Logger.getLogger(Class)
> was called I created a wrapper class that both logged to a file and sent
> the message via the queue.
>
> But I noticed that there are a number of different mechanisms from camel
> log component to broker plugin (which I also implemented) and the OSGi
> LoggerReaderService and Listener and wondered if there's a good example of
> using that with Blueprint.  Most of the examples I've found are with ol'
> fashion service trackers and the like.
>



-- 
Matt Sicker <[email protected]>

Reply via email to