NAME
Log::Log4perl::Appender::Stomp - Log messages via STOMP
VERSION
Version 0.0.1
SYNOPSIS
use Log::Log4perl;
# Default options are in $conf
my $conf = qq(
log4perl.category = WARN, STOMP
log4perl.appender.STOMP = Log::Log4perl::Appender::Stomp
log4perl.appender.STOMP.hostname = localhost
log4perl.appender.STOMP.port = 61613
log4perl.appender.STOMP.topic_name = log
log4perl.appender.STOMP.layout = PatternLayout
log4perl.appender.STOMP.layout.ConversionPattern = %d %-5p %m%n
);
Log::Log4perl::init(\$conf);
Log::Log4perl->get_logger("blah")->debug("...");
DESCRIPTION
This allows you to send log messages via the Streaming Text Orientated Messaging Protocol to a message broker that supports STOMP, such as Apache's ActiveMQ.
This makes use of topics in ActiveMQ so that multiple consumers can receive the log messages from multiple producers. It takes a similar approach as syslog does but uses ActiveMQ to do the message handling.
CONFIGURATION AND ENVIRONMENT
You can change:
- hostname
- port
- topic_name
In the Log::Log4perl configuration.
DEPENDENCIES
BUGS AND LIMITATIONS
Please report any bugs or feature requests to bug-log-log4perl-appender-stomp@rt.cpan.org
, or through the web interface at http://rt.cpan.org.
AUTHOR
Adam Flott <adam@npjh.com>
LICENCE AND COPYRIGHT
Copyright (c) 2008, Adam Flott <adam@npjh.com>
.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.