java.util.logging: how to suppress date line

Posted by andrews on Stack Overflow See other posts from Stack Overflow or by andrews
Published on 2010-06-01T14:42:19Z Indexed on 2010/06/01 16:53 UTC
Read the original article Hit count: 366

Filed under:
|
|

I'm trying to suppress output of the date line durinng logging when using the default logger in java.util.logging. For example, here is a typical output:

Jun 1, 2010 10:18:12 AM gamma.utility.application info

INFO: ping: db-time=2010-06-01 10:18:12.0, local-time=20100601t101812, duration=180000
Jun 1, 2010 10:21:12 AM gamma.utility.application info
INFO: ping: db-time=2010-06-01 10:21:12.0, local-time=20100601t102112, duration=180000

I would like to get rid of the Jun 1, 2010... lines, they just clutter my log output. How can I do this?

© Stack Overflow or respective owner

Related posts about java

Related posts about logging