diff options
author | Tom Denham <tom@tomdee.co.uk> | 2013-02-19 14:17:07 +0000 |
---|---|---|
committer | Tom Denham <tom@tomdee.co.uk> | 2013-02-19 14:17:07 +0000 |
commit | d99133f2c2c75958a8e6f397fed357df210e2fa2 (patch) | |
tree | 8c8399ff46b838e9eea61329eb0dfdadf0187f21 /src/net/java/sip/communicator/util | |
parent | 5ffc3c8b103c35f989b9e6af769a67cddd15cdd6 (diff) | |
download | jitsi-d99133f2c2c75958a8e6f397fed357df210e2fa2.zip jitsi-d99133f2c2c75958a8e6f397fed357df210e2fa2.tar.gz jitsi-d99133f2c2c75958a8e6f397fed357df210e2fa2.tar.bz2 |
Add thread IDs to log messages
Diffstat (limited to 'src/net/java/sip/communicator/util')
-rw-r--r-- | src/net/java/sip/communicator/util/ScLogFormatter.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/util/ScLogFormatter.java b/src/net/java/sip/communicator/util/ScLogFormatter.java index 283de41..a201bfc 100644 --- a/src/net/java/sip/communicator/util/ScLogFormatter.java +++ b/src/net/java/sip/communicator/util/ScLogFormatter.java @@ -53,6 +53,9 @@ public class ScLogFormatter sb.append(record.getLevel().getLocalizedName()); sb.append(": "); + // Thread ID + sb.append("[" + record.getThreadID() + "] "); + //caller method int lineNumber = inferCaller(record); String loggerName = record.getLoggerName(); |