tags:

views:

151

answers:

1

Is it possible to have microsecond level timestamps in log4j logging? This is on linux running Java 1.6.

We have a couple servers right next to each other (synced via LAN to the same NTP server), and I'd like to have microseconds in the log lines.

If log4j doesn't offer this, does logback?

+1  A: 

Log4j does not include microsecond precision timestamps. Logback does not currently include microsecond precision timestamps but future versions of logback probably will.

Ceki