NAME
Log::Message::Structured::Stringify::AsSereal
VERSION
version 0.11
SYNOPSIS
package
MyLogEvent;
use
Moose;
use
namespace::autoclean;
with
qw/
Log::Message::Structured::Stringify::AsSereal
/
;
has
foo
=> (
is
=>
'ro'
,
required
=> 1 );
... elsewhere ...
$logger
->
log
(
message
=> Event->new(
foo
=>
"bar"
));
# Logs:
"some_base_64_string"
DESCRIPTION
Augments the as_string
method provided by Log::Message::Structured, by delegating to the encode
from Sereal::Encoder module, then encoding it using MIME::Base64. Thus, the return value is a base64 string of the Sereal encoded version of the hash structure of the log message.
See Log::Message::Structured for more information.
METHODS
as_string
Returns the event as a Base64 encoded string representing the Sereal encoded hash structure of the log message.
NAME
Log::Message::Structured::Stringify::AsSereal - Sereal-encoded base64'ed log lines
AUTHOR
Damien "dams" Krotkine
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Damien "dams" Krotkine.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.