Frank Denis
and 1 contributors

NAME

Log::Log4perl::Layout::LTSV - Log4perl for LTSV

VERSION

Version 1.0

SYNOPSIS

Log4perl implementation of LTSV.

CONFIGURATION SAMPLE

    use Log::Log4perl
    my $logger_conf = {
      'log4perl.logger.test'                     => 'DEBUG, SERVER',
      'log4perl.appender.SERVER'                 => 'Log::Log4perl::Appender::Socket',
      'log4perl.appender.SERVER.PeerAddr'        => '10.1.2.3',
      'log4perl.appender.SERVER.PeerPort'        => '514',
      'log4perl.appender.SERVER.Proto'           => 'tcp',
      'log4perl.appender.SERVER.layout'          => 'LTSV',
      'log4perl.appender.SERVER.layout.facility' => 'Custom facility'
    };
    Log::Log4perl->init($logger_conf);
    my $LOGGER = Log::Log4perl->get_logger('test');
    $LOGGER->debug('Debug log');
    ...

SUBROUTINES/METHODS

new

    Can take most of options that Log::Log4perl::Layout::PatternLayout can.

render

    Wraps the Log::Log4perl::Layout::PatternLayout return value