Skip to content

Instantly share code, notes, and snippets.

@reyjrar
Created October 5, 2011 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reyjrar/1265688 to your computer and use it in GitHub Desktop.
Save reyjrar/1265688 to your computer and use it in GitHub Desktop.
MooseX::POE Simple STDOUT Plugin
package dns::monitor::plugin::sniffer::log::dest::stdout;
use Moose;
extends 'dns::monitor::plugin::sniffer::log';
sub write {
my ($self,$line) = @_;
print $line,"\n";
}
with 'dns::monitor::plugin::sniffer::log::dest';
no Moose;
__PACKAGE__->meta->make_immutable();
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment