1CGI::Application::PlugiUns:e:rDeCvoPnotpruipb:u:tLeCodGgI(P:3e:)rAlppDloiccuamteinotna:t:iPolnugin::DevPopup::Log(3)
2
3
4

NAME

6       CGI::Application::Plugin::DevPopup::Log - show all data written to an
7       IO::Scalar handle.
8

VERSION

10       version 1.08
11

SYNOPSIS

13           use CGI::Application::Plugin::DevPopup;
14           use CGI::Application::Plugin::DevPopup::Log;
15
16           sub cgiapp_init {
17               # example using LogDispatch
18               my $log_fh = $this->devpopup_log_handle;
19               $this->log_config(
20                   APPEND_NEWLINE => 1,
21                   LOG_DISPATCH_MODULES => [
22                           {   module      => 'Log::Dispatch::Handle',
23                               name        => 'popup',
24                               min_level   => $ENV{CAP_DEVPOPUP_LOGDISPATCH_LEVEL} || 'debug',
25                               handle      => $log_fh,
26                           },
27                       ]
28                   );
29               $this->log->debug("log something");
30           }
31           The rest of your application follows
32           ...
33

DESCRIPTION

35       CGI::Application::Plugin::DevPopup::Log will create a "Log" section in
36       the DevPopup output. All data written to the filehandle returned by
37       "$this->devpopup_log_handle" will be output.
38
39       CGI::Application::Plugin::LogDispatch is very handy for this, but you
40       can write to that filehandle anyway you'd like.
41

METHODS

43       devpopup_log_handle
44           Generates a (fake) filehandle you can pass on to a logging plugin.
45           See the Synopsis for usage.
46

SEE ALSO

48           L<CGI::Application::Plugin::DevPopup>
49           L<CGI::Application>
50           L<CGI::Application::Plugin::LogDispatch>
51

AUTHOR

53       Joshua I Miller, unrtst@cpan.org
54

BUGS

56       Please report any bugs or feature requests to
57       bug-cgi-application-plugin-devpopup@rt.cpan.org, or through the web
58       interface at
59       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-DevPopup>.
60       I will be notified, and then you'll automatically be notified of
61       progress on your bug as I make changes.
62
64       Copyright 2007 Joshua Miller, all rights reserved.
65
66       This program is free software; you can redistribute it and/or modify it
67       under the same terms as Perl itself.
68
69
70
71perl v5.32.0                      202C0G-I0:7:-A2p8plication::Plugin::DevPopup::Log(3)
Impressum