package Log::ger::Layout::JSON;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2020-03-07'; # DATE
our $DIST = 'Log-ger-Layout-JSON'; # DIST
our $VERSION = '0.002'; # VERSION
use 5.0100
ub _encode {
my ($pkg, $msg) = @_;
state $json = do {
require JSON::MaybeXS;
JSON::MaybeXS->new->canonical;
};
$json->encode($msg);
}
sub get_hooks {
__PACKAGE__-
1;
# ABSTRACT: Layout log message as a JSON object (hash)
__END__
=pod
=encoding UTF-8
=head1 NAME
Log::ger::Layout::JSON - Layout log message as a JSON object (hash)
=head1 VERSION
This docu