Jifty::Logger::EventAppender(3pm)

Jifty::Logger::EventAppender3pm

Create jifty events from log directives

Usage

In a log4perl config file:

    log4perl.appender.Event=Jifty::Logger::EventAppender
    log4perl.appender.Event.class=YourApp::Event::Log
    log4perl.appender.Event.arbitraryData=42
    log4perl.appender.Event.layout=SimpleLayout

Overview

This class is a Log::Log4perl-compatible appender which creates Jifty::Event::Log objects when a logging instruction is received.

Methods

new PARAMHASH

The "class" configuration parameter controls the class of the event to create. It defaults to Jifty::Event::Log. All other parameters are passed through to the event when it is created.

log PARAMHASH

Creates an instance of the event with all of the configuration parameters set in the log4perl config file, as well as all of the contents of the "PARAMHASH" -- see Log::Log4perl::Appender for details of the arguments therein.

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

From libjifty-perl 1.10518+dfsg-2 in Debian 7 (Wheezy). Parsed by carta from the page's man source.