[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] log4perl.cfg format?



On Feb 16, 2011, at 12:26 PM, Jay Hannah wrote:
> Anyone want to save me 15 minutes of work by telling me what's in this line of Omni's log4perl.cfg files?
> 
> The default is this:
> 
>   layout_pattern = %d %F{1} %L> %m %n
> 
> Which is 
> 
>   2011/02/16 18:23:52 Feed.pm 493>
> 
> and forward slashes are annoying.  :)

Ah, nevermind I found it...    and settled on this

   layout_class =   PatternLayout
   layout_pattern = %d{ISO8601} %F{1} line:%L PID:%P> %m %n

which kicks out this

   2011-02-16 18:34:19,303 j1.pl line:7 PID:6179> hi 

:)

Thanks,

Jay Hannah
Software Architect
jhannah@mutationgrid.com | http://mutationgrid.com | 1-402-598-7782