[Omaha.pm] log4perl.cfg format?

Jay Hannah jhannah at mutationgrid.com
Wed Feb 16 10:36:09 PST 2011


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 at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782







More information about the Omaha-pm mailing list