NAME

eris::role::decoder - Role for implementing decoders

VERSION

version 0.008

SYNOPSIS

Implement your own decoders, e.g.:

use Parse::Syslog::Line;
use Moo;
with qw( eris::role::decoder );

sub decode_message {
    my ($self,$msg) = @_;
    return parse_syslog_line($msg);
}

INTERFACE

decode_message

Passed the raw message as received. Expects a parsed structure in the form of a HashRef as a return.

SEE ALSO

eris::log::decoders, eris::log::contextualizer, eris::log::decoders::syslog, eris::log::decoder::json

AUTHOR

Brad Lhotsky <brad@divisionbyzero.net>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Brad Lhotsky.

This is free software, licensed under:

The (three-clause) BSD License