You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/01/25 15:21:52 UTC
[incubator-skywalking] branch master updated: add thread-name.
(#2209)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git
The following commit(s) were added to refs/heads/master by this push:
new 5914a2b add thread-name. (#2209)
5914a2b is described below
commit 5914a2b582236581c4073830eaa434475fcbe004
Author: Jared Tan <ji...@daocloud.io>
AuthorDate: Fri Jan 25 23:21:47 2019 +0800
add thread-name. (#2209)
---
.../org/apache/skywalking/apm/agent/core/logging/core/EasyLogger.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/logging/core/EasyLogger.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/logging/core/EasyLogger.java
index 4a21173..7d25099 100644
--- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/logging/core/EasyLogger.java
+++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/logging/core/EasyLogger.java
@@ -67,6 +67,7 @@ public class EasyLogger implements ILog {
String format(LogLevel level, String message, Throwable t) {
return StringUtil.join(' ', level.name(),
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS").format(new Date()),
+ Thread.currentThread().getName(),
targetClass.getSimpleName(),
": ",
message,