Alex White (wu) > App-Wubot > App::Wubot::Reactor::Dumper

Download:
App-Wubot-0.5.0.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.5.0   Source  

NAME ^

App::Wubot::Reactor::Dumper - display the contents of a field or an entire message

VERSION ^

version 0.5.0

SYNOPSIS ^

  - name: dump message contents to stdout
    plugin: Dumper

  - name: display contents of message field 'x'
    plugin: Dumper
    config:
      field: x

DESCRIPTION ^

Display the contents of a message field to stdout. This is primary intended as a debugging tool, e.g. to see how a message looks at some point in the rule tree.

If no configuration is specified, then the entire message will be displayed to stdout using YAML::XS::Dump. If a field is specified in the config, then the contents of that field will be dumped using YAML::XS::Dump.

SUBROUTINES/METHODS ^

react( $message, $config )

The standard reactor plugin react() method.

syntax highlighting: