Log::Saftpresse::Plugin - base class for saftpresse plugins
version 1.5
This is the base class for saftpresse processing plugins.
All plugin classes must inherit from this class.
package Log::Saftpresse::Plugin::MyPlugin; use Moose; extends 'Log::Saftpresse::Plugin'; sub process { my ( $self, $event ) = @_; $event->{'example_text'} = 'this is an example'; $self->incr_one('examples', 'count'); return; } 1;
The name of plugin instance.
Holds the counters of this plugin.
This method must be implemented by every plugin.
Saftpresse will call it for every processed event and pass $event and $notes.
This method is called after an instance of the plugin has been created.
A module could implement it to do initialization tasks.
This methods are delegated to the counter object.
Markus Benning <ich@markusbenning.de>
This software is Copyright (c) 1998 by James S. Seymour, 2015 by Markus Benning.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
To install Log::Saftpresse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Saftpresse
CPAN shell
perl -MCPAN -e shell install Log::Saftpresse
For more information on module installation, please visit the detailed CPAN module installation guide.