1Dancer::Logger::LogRepoUrste(r3)Contributed Perl DocumenDtaantcieorn::Logger::LogReport(3)
2
3
4

NAME

6       Dancer::Logger::LogReport - reroute Dancer logs into Log::Report
7

INHERITANCE

9        Dancer::Logger::LogReport
10          is a Dancer::Logger::Abstract
11
12        Dancer::Logger::LogReport
13          is a Exporter
14

SYNOPSIS

16         # When your main program is not a Dancer object
17         use My::Dancer::App;
18         use Log::Report;
19         ... start dispatcher ...
20         error "something is wrong";   # Log::Report::error()
21
22         # When your main program is a Dancer object
23         use Dancer;
24         use Dancer::Logger::LogReport;
25         use Log::Report import => 'dispatcher';
26         ... start dispatcher ...
27         error "something is wrong";   # Dancer::error()
28
29         # In any case, your main program needs to start log dispatcers
30         # Both Dancer and other Log::Report based modules will send
31         # their messages here:
32         dispatcher FILE => 'default', ...;
33
34         # In your config
35         logger: log_report
36         logger_format: %i%m   # keep it simple
37         log: debug            # filtered by dispatchers
38

DESCRIPTION

40       The Log::Report exception/translation framework defines a large number
41       of logging back-ends.  The same log messages can be sent to multiple
42       destinations at the same time via flexible dispatchers.  When you use
43       this logger in your Dancer application, it will nicely integrate with
44       non-Dancer modules which need logging.
45
46       Many log back-ends, like syslog, have more levels of system messages.
47       Modules who explicitly load this module can use the missing "assert",
48       "notice", "panic", and "alert" log levels.  The "trace" name is
49       provided as well: when you are debugging, you add a 'trace' to your
50       program... its just a better name than 'debug'.
51
52       You probably want to set a very simple "logger_format", because the
53       dispatchers do already add some of the fields that the default "simple"
54       format adds.  For instance, to get the filename/line-number in messages
55       depends on the dispatcher 'mode' (f.i. 'DEBUG').
56
57       You also want to set the log level to "debug", because level filtering
58       is controlled per dispatcher (as well)
59

SEE ALSO

61       This module is part of Log-Report distribution version 1.32, built on
62       January 26, 2021. Website: http://perl.overmeer.net/CPAN/
63

LICENSE

65       Copyrights 2007-2021 by [Mark Overmeer <markov@cpan.org>]. For other
66       contributors see ChangeLog.
67
68       This program is free software; you can redistribute it and/or modify it
69       under the same terms as Perl itself.  See http://dev.perl.org/licenses/
70
71
72
73perl v5.32.0                      2021-01-26      Dancer::Logger::LogReport(3)
Impressum