From d99133f2c2c75958a8e6f397fed357df210e2fa2 Mon Sep 17 00:00:00 2001 From: Tom Denham Date: Tue, 19 Feb 2013 14:17:07 +0000 Subject: Add thread IDs to log messages --- src/net/java/sip/communicator/util/ScLogFormatter.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/net/java/sip/communicator/util') 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(); -- cgit v1.1