Log::Message::Structured::Stringify::AsYAML - YAML log lines
has foo => ( is => 'ro', required => 1 );
... elsewhere ...
use aliased 'My::Log::Event';
$logger->log(message => Event->new( foo => "bar" ));
as_string method provided by Log::Message::Structured, by delegating to the
Dump function from YAML::Any module, and thus returning a YAML string.
Returns the event as YAML
Tomas Doran (t0m)
<firstname.lastname@example.org>. Damien Krotkine (dams)
Licensed under the same terms as perl itself.