Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Monks,

I have an application that uses log4perl for logging and I am currently thinking about adding logging via Jabber to it.

To my surprise I found that there does not seem to be an corresponding log4perl-appender on CPAN.

So I ask myself: Is there a reason for that? Is maybe logging via Jabber a bad idea?

How would you make log-messages available from remote in real-time?

Many thanks!

Replies are listed 'Best First'.
Re: Logging via Jabber
by f00li5h (Chaplain) on Dec 01, 2008 at 06:19 UTC

    It doesn't sound like too bad an idea to me... Log::Dispatch::Jabber.

    @_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

      As I said - I am using Log4perl.

      Or is there a way to use Log::Dispatch::Jabber as a log4perl-appender?

        Hi,

        I think you can use the Log::Dispatch modules as appender, look at the man page of Log::Log4perl::Appender.

        Regards,

        fmerges at irc.freenode.net

        I was more pointing at prior art than at a particular solution for log4perl. It does seem reasonable that this module woudl play nice though...

        ... perhaps with a wrapper or some tasty curry.

        Please excuse the mathematical handwaving

        @_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;