and 1 contributors
Log::Message::Structured::Stringify::AsYAML - YAML log lines
package MyLogEvent; use Moose; use namespace::autoclean; with qw/ Log::Message::Structured Log::Message::Structured::Stringify::AsYAML /; has foo => ( is => 'ro', required => 1 ); ... elsewhere ... use aliased 'My::Log::Event'; $logger->log(message => Event->new( foo => "bar" ));
Returns the event as YAML
AUTHOR AND COPYRIGHT
Tomas Doran (t0m)
<email@example.com>. Damien Krotkine (dams)
Licensed under the same terms as perl itself.