1Plack::Middleware::LogDUissepratCcohn(t3r)ibuted Perl DoPcluamcekn:t:aMtiidodnleware::LogDispatch(3)
2
3
4

NAME

6       Plack::Middleware::LogDispatch - Uses Log::Dispatch to configure logger
7

SYNOPSIS

9         use Log::Dispatch;
10
11         my $logger = Log::Dispatch->new;
12         $logger->add( Log::Dispatch::File->new(...) );
13         $logger->add( Log::Dispatch::DesktopNotification->new(...) );
14
15         builder {
16             enable "LogDispatch", logger => $logger;
17             $app;
18         }
19
20         # use with Log::Dispatch::Config
21         use Log::Dispatch::Config;
22         Log::Dispatch::Config->configure('/path/to/log.conf');
23
24         builder {
25             enable "LogDispatch", logger => Log::Dispatch::Config->instance;
26             ...
27         }
28

DESCRIPTION

30       LogDispatch is a Plack::Middleware component that allows you to use
31       Log::Dispatch to configure the logging object, "psgix.logger".
32

CONFIGURATION

34       logger
35           Log::Dispatch object to send logs to. Required.
36

AUTHOR

38       Tatsuhiko Miyagawa
39

SEE ALSO

41       Log::Dispatch
42
43       Plack::Middleware::Log4perl
44
45
46
47perl v5.34.0                      2022-01-21 Plack::Middleware::LogDispatch(3)
Impressum