CGI::Application::Plugin::DevPopup::Log(3pm)

CGI::Application::Plugin::DevPopup::Log3pm

Show all data written to an io::scalar handle.

Usage

    use CGI::Application::Plugin::DevPopup;
    use CGI::Application::Plugin::DevPopup::Log;
    sub cgiapp_init {
        # example using LogDispatch
        my $log_fh = $this->devpopup_log_handle;
        $this->log_config(
            APPEND_NEWLINE => 1,
            LOG_DISPATCH_MODULES => [
                    {   module      => 'Log::Dispatch::Handle',
                        name        => 'popup',
                        min_level   => $ENV{CAP_DEVPOPUP_LOGDISPATCH_LEVEL} || 'debug',
                        handle      => $log_fh,
                    },
                ]
            );
        $this->log->debug("log something");
    }
    The rest of your application follows
    ...

Version

version 1.08

Overview

CGI::Application::Plugin::DevPopup::Log will create a "Log" section in the DevPopup output. All data written to the filehandle returned by "$this->devpopup_log_handle" will be output.

CGI::Application::Plugin::LogDispatch is very handy for this, but you can write to that filehandle anyway you'd like.

Methods

devpopup_log_handle

Generates a (fake) filehandle you can pass on to a logging plugin. See the Synopsis for usage.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 5 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9–10
  6. 11–13

Author

Joshua I Miller, [email protected]

Bugs

Please report any bugs or feature requests to [email protected], or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-DevPopup>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

From libcgi-application-plugin-devpopup-perl 1.08+~cs2.4-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.