1Dancer2::Plugin::LogRepUosretr::CMoenstsraigbeu(t3e)d PeDralncDeorc2u:m:ePnltuagtiino:n:LogReport::Message(3)
2
3
4
6 Dancer2::Plugin::LogReport::Message - extended Log::Report message
7 class
8
10 Dancer2::Plugin::LogReport::Message
11 is a Log::Report::Message
12
14 In your template:
15
16 [% FOR message IN messages %]
17 <div class="alert alert-[% message.bootstrap_color %]">
18 [% message.toString | html_entity %]
19 </div>
20 [% END %]
21
23 [The Dancer2 plugin was contributed by Andrew Beverley]
24
25 This class is an extension of Log::Report::Message, with functions
26 specifically designed for Dancer applications. Minimal functions are
27 provided (currently only aimed at Bootstrap), but ideas for new ones
28 are welcome.
29
30 Extends "DESCRIPTION" in Log::Report::Message.
31
33 Extends "METHODS" in Log::Report::Message.
34
35 $obj->bootstrap_color()
36 Get a suitable bootstrap context color for the message. This can be
37 used as per the SYNOPSIS.
38
39 "success" is used for Dancer2::Plugin::LogReport::success()
40 messages, "info" colors are used for messages "notice" and below,
41 "warning" is used for "warning" and "mistake", "danger" is used for
42 all other messages
43
44 $obj->reason()
45 Get or set the reason of a message
46
48 Extends "DETAILS" in Log::Report::Message.
49
51 Extends "OVERLOADING" in Log::Report::Message.
52
53 overload: as $function
54 Inherited, see "OVERLOADING" in Log::Report::Message
55
56 overload: concatenation
57 Inherited, see "OVERLOADING" in Log::Report::Message
58
59 overload: stringification
60 Inherited, see "OVERLOADING" in Log::Report::Message
61
63 This module is part of Log-Report distribution version 1.29, built on
64 November 08, 2019. Website: http://perl.overmeer.net/CPAN/
65
67 Copyrights 2007-2019 by [Mark Overmeer <markov@cpan.org>]. For other
68 contributors see ChangeLog.
69
70 This program is free software; you can redistribute it and/or modify it
71 under the same terms as Perl itself. See http://dev.perl.org/licenses/
72
73
74
75perl v5.30.1 2019-11D-a0n8cer2::Plugin::LogReport::Message(3)