[log4perl-devel] Log::Log4perl::Catalyst

2013-03-27 Thread Lee Goddard
I'm trying Log::Log4perl::Catalyst in the way described in the SYNOPSIS 
of the POD, with the configuration below. I get my own log statements in 
the expected location but still some of Catalyst's -Debug statements go 
to STDERR.

Is this a feature of Catalyst, or am I doing something wrong?

TIA
Lee

Config:

log4perl.logger = TRACE, FILE
log4perl.appender.FILE= Log::Log4perl::Appender::File
log4perl.appender.FILE.mode= append
log4perl.appender.FILE.filename = 
/logs/engine/FifteenGifts-Engine/logs/l4p.log
log4perl.appender.FILE.layout=Log::Log4perl::Layout::PatternLayout
log4perl.appender.FILE.layout.ConversionPattern = %5p | %-50m | %-30M{4} 
%4L%n

Output in l4p.log:

TRACE | Leave  | 
Engine.Model.DAO.retrieve   135
DEBUG | Response Code: 200; Content-Type: application/json; 
charset=utf-8; Content-Length: 13587 | 
Catalyst::log_response_status_line 2264
  INFO | Request took 26.607410s (0.038/s)
.+---.
| Action | Time  |
++---+
| /threshold/default | 26.59772s |
|  -> /threshold/update  | 26.59430s |
| /end   | 0.002213s |
|  -> FifteenGifts::Engine::View::JSON->process  | 0.001421s |
'+---'

  | Catalyst::finalize 1820



Output in error_log (STDERR)

[Wed Mar 27 09:42:13 2013] [error] [client 127.0.0.1] [debug] Loaded 
Path actions:, referer: http://engineeditor/threshold/
[Wed Mar 27 09:42:13 2013] [error] [client 127.0.0.1] [info] 
FifteenGifts::Engine powered by Catalyst 5.90019, referer: 
http://engineeditor/threshold/
etc
:




--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
log4perl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4perl-devel


Re: [log4perl-devel] Log::Log4perl::Catalyst

2013-03-27 Thread Mike Schilli
On Wed, 27 Mar 2013, Lee Goddard wrote:

> I'm trying Log::Log4perl::Catalyst in the way described in the SYNOPSIS
> of the POD, with the configuration below. I get my own log statements in
> the expected location but still some of Catalyst's -Debug statements go
> to STDERR.

If those messages aren't formatted with the Log4perl layout you've
specified, it's safe to assume that they're not using Log4perl for
those.

You might want to ask on the Catalyst forums, I've had good luck with
speedy responses in the Freenode #catalyst IRC channel.

-- -- Mike

Mike Schilli
[email protected]

>
> Is this a feature of Catalyst, or am I doing something wrong?
>
> TIA
> Lee
>
> Config:
>
> log4perl.logger = TRACE, FILE
> log4perl.appender.FILE= Log::Log4perl::Appender::File
> log4perl.appender.FILE.mode= append
> log4perl.appender.FILE.filename =
> /logs/engine/FifteenGifts-Engine/logs/l4p.log
> log4perl.appender.FILE.layout=Log::Log4perl::Layout::PatternLayout
> log4perl.appender.FILE.layout.ConversionPattern = %5p | %-50m | %-30M{4}
> %4L%n
>
> Output in l4p.log:
>
> TRACE | Leave  |
> Engine.Model.DAO.retrieve   135
> DEBUG | Response Code: 200; Content-Type: application/json;
> charset=utf-8; Content-Length: 13587 |
> Catalyst::log_response_status_line 2264
>  INFO | Request took 26.607410s (0.038/s)
> .+---.
> | Action | Time  |
> ++---+
> | /threshold/default | 26.59772s |
> |  -> /threshold/update  | 26.59430s |
> | /end   | 0.002213s |
> |  -> FifteenGifts::Engine::View::JSON->process  | 0.001421s |
> '+---'
>
>  | Catalyst::finalize 1820
>
>
>
> Output in error_log (STDERR)
>
> [Wed Mar 27 09:42:13 2013] [error] [client 127.0.0.1] [debug] Loaded
> Path actions:, referer: http://engineeditor/threshold/
> [Wed Mar 27 09:42:13 2013] [error] [client 127.0.0.1] [info]
> FifteenGifts::Engine powered by Catalyst 5.90019, referer:
> http://engineeditor/threshold/
> etc
> :
>
>
>
>
> --
> Own the Future-Intel® Level Up Game Demo Contest 2013
> Rise to greatness in Intel's independent game demo contest.
> Compete for recognition, cash, and the chance to get your game
> on Steam. $5K grand prize plus 10 genre and skill prizes.
> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
> ___
> log4perl-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/log4perl-devel
>

--
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
log4perl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4perl-devel