uncpan Log::Log4perl
uncpan Catalyst::Plugin::Static::Simple
test app MyApp
access and review from a browser

% perl -I Log-Log4perl-1.44/lib -I Catalyst-Plugin-Static-Simple-0.32/lib ./script/myapp_server.pl -d
[debug] Debug messages enabled
[debug] Statistics enabled
[debug] Loaded PSGI Middleware:
.------------------------------------------------------------------------------------------------.
| Catalyst::Middleware::Stash                                                                    |
| Plack::Middleware::HTTPExceptions                                                              |
| Plack::Middleware::RemoveRedundantBody  0.03                                                   |
| Plack::Middleware::FixMissingBodyInRedirect  0.09                                              |
| Plack::Middleware::ContentLength                                                               |
| Plack::Middleware::MethodOverride  0.10                                                        |
| Plack::Middleware::Head                                                                        |
'------------------------------------------------------------------------------------------------'

[debug] Loaded Request Data Handlers:
.------------------------------------------------------------------------------------------------.
| application/json                                                                               |
| application/x-www-form-urlencoded                                                              |
'------------------------------------------------------------------------------------------------'

[debug] Loaded dispatcher "Catalyst::Dispatcher"
[debug] Loaded engine "Catalyst::Engine"
[debug] Found home "/usr/home/bokutin/git/p5-try-log4perl-catalyst"
[debug] Loaded components:
.-------------------------------------------------------------------------------------+----------.
| Class                                                                               | Type     |
+-------------------------------------------------------------------------------------+----------+
| MyApp::Controller::Root                                                             | instance |
'-------------------------------------------------------------------------------------+----------'

[debug] Loaded Private actions:
.------------------------+----------------------------------------------+------------------------.
| Private                | Class                                        | Method                 |
+------------------------+----------------------------------------------+------------------------+
| /default               | MyApp::Controller::Root                      | default                |
| /welcome               | MyApp::Controller::Root                      | welcome                |
'------------------------+----------------------------------------------+------------------------'

[debug] Loaded Path actions:
.-----------------------------------------------+------------------------------------------------.
| Path                                          | Private                                        |
+-----------------------------------------------+------------------------------------------------+
| /...                                          | /default                                       |
| /welcome/...                                  | /welcome                                       |
'-----------------------------------------------+------------------------------------------------'

[info] MyApp powered by Catalyst 5.90071
HTTP::Server::PSGI: Accepting connections at http://0:3000/
[info] *** Request 1 (0.100/s) [3224] [Fri Aug 29 19:02:58 2014] ***
[debug] Path is "welcome"
[debug] "GET" request for "welcome" from "192.168.11.20"
[debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Content-Length: unknown
[info] Request took 0.003309s (302.206/s)
.--------------------------------------------------------------------------------+-----------.
| Action                                                                         | Time      |
+--------------------------------------------------------------------------------+-----------+
| /welcome                                                                       | 0.000214s |
'-------------------------------------------
enable Log::Log4perl::Catalyst
access and review from a browser

% perl -I Log-Log4perl-1.44/lib -I Catalyst-Plugin-Static-Simple-0.32/lib ./script/myapp_server.pl -d
[2014/08/29 19:04:31] [catalyst] [DEBUG] Debug messages enabled
[2014/08/29 19:04:31] [catalyst] [DEBUG] Statistics enabled
[2014/08/29 19:04:31] [catalyst] [DEBUG] Loaded PSGI Middleware:
.------------------------------------------------------------------------------------------------.
| Catalyst::Middleware::Stash                                                                    |
| Plack::Middleware::HTTPExceptions                                                              |
| Plack::Middleware::RemoveRedundantBody  0.03                                                   |
| Plack::Middleware::FixMissingBodyInRedirect  0.09                                              |
| Plack::Middleware::ContentLength                                                               |
| Plack::Middleware::MethodOverride  0.10                                                        |
| Plack::Middleware::Head                                                                        |
'------------------------------------------------------------------------------------------------'

[2014/08/29 19:04:31] [catalyst] [DEBUG] Loaded Request Data Handlers:
.------------------------------------------------------------------------------------------------.
| application/json                                                                               |
| application/x-www-form-urlencoded                                                              |
'------------------------------------------------------------------------------------------------'

[2014/08/29 19:04:31] [catalyst] [DEBUG] Loaded dispatcher "Catalyst::Dispatcher"
[2014/08/29 19:04:31] [catalyst] [DEBUG] Loaded engine "Catalyst::Engine"
[2014/08/29 19:04:31] [catalyst] [DEBUG] Found home "/usr/home/bokutin/git/p5-try-log4perl-catalyst"
[2014/08/29 19:04:31] [catalyst] [DEBUG] Loaded components:
.-------------------------------------------------------------------------------------+----------.
| Class                                                                               | Type     |
+-------------------------------------------------------------------------------------+----------+
| MyApp::Controller::Root                                                             | instance |
'-------------------------------------------------------------------------------------+----------'

[2014/08/29 19:04:31] [catalyst] [DEBUG] Loaded Private actions:
.------------------------+----------------------------------------------+------------------------.
| Private                | Class                                        | Method                 |
+------------------------+----------------------------------------------+------------------------+
| /default               | MyApp::Controller::Root                      | default                |
| /welcome               | MyApp::Controller::Root                      | welcome                |
'------------------------+----------------------------------------------+------------------------'

[2014/08/29 19:04:31] [catalyst] [DEBUG] Loaded Path actions:
.-----------------------------------------------+------------------------------------------------.
| Path                                          | Private                                        |
+-----------------------------------------------+------------------------------------------------+
| /...                                          | /default                                       |
| /welcome/...                                  | /welcome                                       |
'-----------------------------------------------+------------------------------------------------'

[2014/08/29 19:04:31] [catalyst] [INFO] MyApp powered by Catalyst 5.90071
HTTP::Server::PSGI: Accepting connections at http://0:3000/
[2014/08/29 19:04:34] [catalyst] [INFO] *** Request 1 (0.333/s) [3456] [Fri Aug 29 19:04:34 2014] ***
[2014/08/29 19:04:34] [catalyst] [DEBUG] Path is "welcome"
[2014/08/29 19:04:34] [catalyst] [DEBUG] "GET" request for "welcome" from "192.168.11.20"
[2014/08/29 19:04:34] [catalyst] [DEBUG] Response Code: 200; Content-Type: text/html; charset=utf-8; Content-Length: unknown
[2014/08/29 19:04:34] [catalyst] [INFO] Request took 0.003917s (255.297/s)
.--------------------------------------------------------------------------------+-----------.
| Action                                                                         | Time      |
+--------------------------------------------------------------------------------+-----------+
| /welcome                                                                       | 0.000245s |
'--------------------------------------------------------------------------------+-----------'

[2014/08/29 19:04:34] [catalyst] [INFO] *** Request 2 (0.667/s) [3456] [Fri Aug 29 19:04:34 2014] ***
[2014/08/29 19:04:34] [catalyst] [DEBUG] Path is "/"
[2014/08/29 19:04:34] [catalyst] [DEBUG] Arguments are "static/images/catalyst_logo.png"
[2014/08/29 19:04:34] [catalyst] [DEBUG] "GET" request for "static/images/catalyst_logo.png" from "192.168.11.20"
[2014/08/29 19:04:34] [catalyst] [DEBUG] Static::Simple: Serving /usr/home/bokutin/git/p5-try-log4perl-catalyst/root/static/images/catalyst_logo.png as image/png
[2014/08/29 19:04:34] [catalyst] [DEBUG] Response Code: 200; Content-Type: image/png; Content-Length: 13710
[2014/08/29 19:04:34] [catalyst] [INFO] Request took 0.004493s (222.568/s)
.--------------------------------------------------------------------------------+-----------.
| Action                                                                         | Time      |
+--------------------------------------------------------------------------------+-----------+
'--------------------------------------------------------------------------------+-----------'
apply https://github.com/bokutin/log4perl/commit/4877d5d591ced474fdf420bddb86db3a3ed4f98a#diff-d41d8cd98f00b204e9800998ecf8427e
access and review from a browser

% perl -I Log-Log4perl-1.44/lib -I Catalyst-Plugin-Static-Simple-0.32/lib ./script/myapp_server.pl -d
[2014/08/29 19:07:08] [catalyst] [DEBUG] Debug messages enabled
[2014/08/29 19:07:08] [catalyst] [DEBUG] Statistics enabled
[2014/08/29 19:07:08] [catalyst] [DEBUG] Loaded PSGI Middleware:
.------------------------------------------------------------------------------------------------.
| Catalyst::Middleware::Stash                                                                    |
| Plack::Middleware::HTTPExceptions                                                              |
| Plack::Middleware::RemoveRedundantBody  0.03                                                   |
| Plack::Middleware::FixMissingBodyInRedirect  0.09                                              |
| Plack::Middleware::ContentLength                                                               |
| Plack::Middleware::MethodOverride  0.10                                                        |
| Plack::Middleware::Head                                                                        |
'------------------------------------------------------------------------------------------------'

[2014/08/29 19:07:08] [catalyst] [DEBUG] Loaded Request Data Handlers:
.------------------------------------------------------------------------------------------------.
| application/json                                                                               |
| application/x-www-form-urlencoded                                                              |
'------------------------------------------------------------------------------------------------'

[2014/08/29 19:07:08] [catalyst] [DEBUG] Loaded dispatcher "Catalyst::Dispatcher"
[2014/08/29 19:07:08] [catalyst] [DEBUG] Loaded engine "Catalyst::Engine"
[2014/08/29 19:07:08] [catalyst] [DEBUG] Found home "/usr/home/bokutin/git/p5-try-log4perl-catalyst"
[2014/08/29 19:07:08] [catalyst] [DEBUG] Loaded components:
.-------------------------------------------------------------------------------------+----------.
| Class                                                                               | Type     |
+-------------------------------------------------------------------------------------+----------+
| MyApp::Controller::Root                                                             | instance |
'-------------------------------------------------------------------------------------+----------'

[2014/08/29 19:07:08] [catalyst] [DEBUG] Loaded Private actions:
.------------------------+----------------------------------------------+------------------------.
| Private                | Class                                        | Method                 |
+------------------------+----------------------------------------------+------------------------+
| /default               | MyApp::Controller::Root                      | default                |
| /welcome               | MyApp::Controller::Root                      | welcome                |
'------------------------+----------------------------------------------+------------------------'

[2014/08/29 19:07:08] [catalyst] [DEBUG] Loaded Path actions:
.-----------------------------------------------+------------------------------------------------.
| Path                                          | Private                                        |
+-----------------------------------------------+------------------------------------------------+
| /...                                          | /default                                       |
| /welcome/...                                  | /welcome                                       |
'-----------------------------------------------+------------------------------------------------'

[2014/08/29 19:07:08] [catalyst] [INFO] MyApp powered by Catalyst 5.90071
HTTP::Server::PSGI: Accepting connections at http://0:3000/
[2014/08/29 19:07:11] [catalyst] [INFO] *** Request 1 (0.333/s) [3955] [Fri Aug 29 19:07:11 2014] ***
[2014/08/29 19:07:11] [catalyst] [DEBUG] Path is "welcome"
[2014/08/29 19:07:11] [catalyst] [DEBUG] "GET" request for "welcome" from "192.168.11.20"
[2014/08/29 19:07:11] [catalyst] [DEBUG] Response Code: 200; Content-Type: text/html; charset=utf-8; Content-Length: unknown
[2014/08/29 19:07:11] [catalyst] [INFO] Request took 0.003656s (273.523/s)
.--------------------------------------------------------------------------------+-----------.
| Action                                                                         | Time      |
+--------------------------------------------------------------------------------+-----------+
| /welcome                                                                       | 0.000224s |
'--------------------------------------------------------------------------------+-----------'
add warn lines
access and review from a browser

% perl -I Log-Log4perl-1.44/lib -I Catalyst-Plugin-Static-Simple-0.32/lib ./script/myapp_server.pl -d
enter _flush from Catalyst:L1292 at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 123.
call $self->abort() at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 128.
enter abort from Log::Log4perl::Catalyst:L129 at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 144.
[2014/08/29 19:09:19] [catalyst] [DEBUG] Debug messages enabled
[2014/08/29 19:09:19] [catalyst] [DEBUG] Statistics enabled
[2014/08/29 19:09:19] [catalyst] [DEBUG] Loaded PSGI Middleware:
.------------------------------------------------------------------------------------------------.
| Catalyst::Middleware::Stash                                                                    |
| Plack::Middleware::HTTPExceptions                                                              |
| Plack::Middleware::RemoveRedundantBody  0.03                                                   |
| Plack::Middleware::FixMissingBodyInRedirect  0.09                                              |
| Plack::Middleware::ContentLength                                                               |
| Plack::Middleware::MethodOverride  0.10                                                        |
| Plack::Middleware::Head                                                                        |
'------------------------------------------------------------------------------------------------'

[2014/08/29 19:09:19] [catalyst] [DEBUG] Loaded Request Data Handlers:
.------------------------------------------------------------------------------------------------.
| application/json                                                                               |
| application/x-www-form-urlencoded                                                              |
'------------------------------------------------------------------------------------------------'

[2014/08/29 19:09:19] [catalyst] [DEBUG] Loaded dispatcher "Catalyst::Dispatcher"
[2014/08/29 19:09:19] [catalyst] [DEBUG] Loaded engine "Catalyst::Engine"
[2014/08/29 19:09:19] [catalyst] [DEBUG] Found home "/usr/home/bokutin/git/p5-try-log4perl-catalyst"
[2014/08/29 19:09:19] [catalyst] [DEBUG] Loaded components:
.-------------------------------------------------------------------------------------+----------.
| Class                                                                               | Type     |
+-------------------------------------------------------------------------------------+----------+
| MyApp::Controller::Root                                                             | instance |
'-------------------------------------------------------------------------------------+----------'

[2014/08/29 19:09:19] [catalyst] [DEBUG] Loaded Private actions:
.------------------------+----------------------------------------------+------------------------.
| Private                | Class                                        | Method                 |
+------------------------+----------------------------------------------+------------------------+
| /default               | MyApp::Controller::Root                      | default                |
| /welcome               | MyApp::Controller::Root                      | welcome                |
'------------------------+----------------------------------------------+------------------------'

[2014/08/29 19:09:19] [catalyst] [DEBUG] Loaded Path actions:
.-----------------------------------------------+------------------------------------------------.
| Path                                          | Private                                        |
+-----------------------------------------------+------------------------------------------------+
| /...                                          | /default                                       |
| /welcome/...                                  | /welcome                                       |
'-----------------------------------------------+------------------------------------------------'

[2014/08/29 19:09:19] [catalyst] [INFO] MyApp powered by Catalyst 5.90071
HTTP::Server::PSGI: Accepting connections at http://0:3000/
enter _flush from Catalyst:L2113 at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 123.
call $self->abort() at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 128.
enter abort from Log::Log4perl::Catalyst:L129 at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 144.
[2014/08/29 19:09:22] [catalyst] [INFO] *** Request 1 (0.333/s) [4190] [Fri Aug 29 19:09:22 2014] ***
[2014/08/29 19:09:22] [catalyst] [DEBUG] Path is "welcome"
[2014/08/29 19:09:22] [catalyst] [DEBUG] "GET" request for "welcome" from "192.168.11.20"
[2014/08/29 19:09:22] [catalyst] [DEBUG] Response Code: 200; Content-Type: text/html; charset=utf-8; Content-Length: unknown
[2014/08/29 19:09:22] [catalyst] [INFO] Request took 0.003749s (266.738/s)
.--------------------------------------------------------------------------------+-----------.
| Action                                                                         | Time      |
+--------------------------------------------------------------------------------+-----------+
| /welcome                                                                       | 0.000229s |
'--------------------------------------------------------------------------------+-----------'

call $c->log->abort( 1 ) at Catalyst-Plugin-Static-Simple-0.32/lib/Catalyst/Plugin/Static/Simple.pm line 81.
enter abort from Catalyst::Plugin::Static::Simple:L82 at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 144.
enter _flush from Catalyst:L2113 at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 123.
call $self->abort() at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 128.
enter abort from Log::Log4perl::Catalyst:L129 at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 144.
call $self->abort(undef) at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 130.
enter abort from Log::Log4perl::Catalyst:L131 at Log-Log4perl-1.44/lib/Log/Log4perl/Catalyst.pm line 144.