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
Tomas Doran (t0m)
<firstname.lastname@example.org>. Damien Krotkine (dams)
Licensed under the same terms as perl itself.