Howdy,

The attached has always seemed to me almost too trivial, but it's made my
log-reading life vastly more pleasant.

It's an ObjectRenderer for Calendars and Dates.  Although Date has a
half-decent #toString() (and the java.sql.Time a quite pleasant one),
Calendar's #toString is something only a mother could love.  The attached
renderer does them all the same way, using a human readable format.

Note that since Calendar and Date aren't related (in an inheritance sense)
you have to add two Renderer lines to your configuration script if you want
to use the Renderer for both -- one for Date and one for Calendar...

Perhaps others will find it useful too.

Cheers,
Mark

P.S.  Where do other people put their renderers (which package)?  I tossed
this one into org.apache.log4j.or, mainly because I couldn't find a spot
that seemed to fit better...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to