Dancer2-Plugin-LogReport

 view release on metacpan or  search on metacpan

lib/Dancer2/Plugin/LogReport/Message.pod  view on Meta::CPAN

=item $obj-E<gt>B<tags>()

Inherited, see L<Log::Report::Message/"Attributes">

=item $obj-E<gt>B<to>( [$name] )

Inherited, see L<Log::Report::Message/"Attributes">

=item $obj-E<gt>B<valueOf>($parameter)

Inherited, see L<Log::Report::Message/"Attributes">

=back

=head2 Processing

Extends L<"Processing" in Log::Report::Message|Log::Report::Message/"Processing">.

=over 4

=item $obj-E<gt>B<concat>( $text|$message, [$prepend] )

Inherited, see L<Log::Report::Message/"Processing">

=item $obj-E<gt>B<freeze>(%options)

Inherited, see L<Log::Report::Message/"Processing">

=item $obj-E<gt>B<inClass>($tag|Regexp)

Inherited, see L<Log::Report::Message/"Processing">

=item $obj-E<gt>B<taggedWith>($tag|Regexp)

Inherited, see L<Log::Report::Message/"Processing">

=item $class-E<gt>B<thaw>(\%data, %options)

Inherited, see L<Log::Report::Message/"Processing">

=item $obj-E<gt>B<toHTML>( [$locale] )

Inherited, see L<Log::Report::Message/"Processing">

=item $obj-E<gt>B<toString>( [$locale] )

Inherited, see L<Log::Report::Message/"Processing">

=item $obj-E<gt>B<untranslated>()

Inherited, see L<Log::Report::Message/"Processing">

=back

=head2 Serialization

[2.03] Log messages are/can be stored in the Session object.  The Session
object may be cached in a file, in various formats.  To be able to save
and restore these message objects from this session serialization, we
need to freeze and thaw the object at the right moment.  This happens
transparently.

For session serialization in the database, put this in your
configuration:

  engines:
    session:
      DBIC:
        serializer: JSON
        serialize_options:
          allow_tags: 1
        deserialize_options:
          allow_tags: 1

=over 4

=item $obj-E<gt>B<FREEZE>($serializer)

JSON (both JSON::XS and JSON::PP) and Sereal should work as
C<$serializer>: they both support the CBOR::XS interface.

=item $class-E<gt>B<THAW>($serializer, $msg)

Z<>

=back

=head1 DETAILS

Extends L<"DETAILS" in Log::Report::Message|Log::Report::Message/"DETAILS">.

=head1 SEE ALSO

This module is part of Dancer2-Plugin-LogReport version 2.03,
built on April 13, 2026. Website: F<http://perl.overmeer.net/CPAN/>

=head1 LICENSE

For contributors see file ChangeLog.

This software is copyright (c) 2015-2026 by Mark Overmeer.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.



( run in 1.660 second using v1.01-cache-2.11-cpan-39bf76dae61 )