mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
260 B
Perl
15 lines
260 B
Perl
13 years ago
|
package Action::Log;
|
||
|
use Moose;
|
||
|
extends 'Processor';
|
||
|
|
||
|
has 'data' => (is => 'rw', isa => 'HashRef', required => 1);
|
||
|
|
||
|
sub name { 'log' }
|
||
|
sub description { 'Log to file' }
|
||
|
|
||
|
sub perform {
|
||
|
my $self = shift;
|
||
|
$self->log->info($self->json->encode($self->data));
|
||
|
}
|
||
|
|
||
|
1
|