Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top