CGI::A...up::Log(3pm)

πŸ“¦
version 1.08+~cs2.4 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

NAME 🌸

okay bestie, welcome to the manual page for CGI::Application::Plugin::DevPopup::Log β€” the header shortens it to CGI::A...up::Log(3pm), and yes it’s User Contributed Perl Documentation, we love that for us. Its whole iconic job: show all data written to an IO::Scalar handle. πŸ’…

VERSION ✨

version 1.08 β€” that’s the vibe check, and it passed. πŸ’–

SYNOPSIS πŸ¦‹

okay so here’s the setup, exactly as the page lays it out:

           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
           ...

DESCRIPTION 🧚

CGI::Application::Plugin::DevPopup::Log creates a "Log" section in the DevPopup output. All data written to the filehandle returned by $this->devpopup_log_handle will be output. Like, everything you send to that handle shows up there. πŸ‘‘

CGI::Application::Plugin::LogDispatch is very handy for this, but you can write to that filehandle anyway you'd like. No cap, your logging plugin can be whatever.

METHODS πŸ’…

devpopup_log_handle πŸŽ€

Generates a (fake) filehandle you can pass on to a logging plugin. See the Synopsis for usage. That’s it β€” icon behavior. ✨

SEE ALSO πŸ”₯

go give these a look, bestie:

  • CGI::Application::Plugin::DevPopup
  • CGI::Application
  • CGI::Application::Plugin::LogDispatch

AUTHOR 🫢

Joshua I Miller, unrtst@cpan.org β€” author icon. πŸ’–

BUGS πŸ’€

Please report any bugs or feature requests to bug-cgi-application-plugin-devpopup@rt.cpan.org, 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. (Yes, that’s the author speaking β€” very main character of them. πŸ™ˆ)

Copyright 2007 Joshua Miller, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


okay bye bestie πŸ’– β€” source/version vibes: perl v5.30.3, date 2020-09-25, on the CGI::A...up::Log(3pm) manual page. mwah βœ¨πŸ’‹

πŸ“¦ where this page comes from