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 LogDispatchmy $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.
Copyright & license
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.
Releases
9 releases since Debian 5.0 (Lenny); the text changed 5 times.