diff --git a/sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/AgentCoreEntrance.java b/sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/AgentCoreEntrance.java index defccf2149..c048519ff7 100644 --- a/sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/AgentCoreEntrance.java +++ b/sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/AgentCoreEntrance.java @@ -85,10 +85,10 @@ public static void install(String artifact, Map argsMap, Instrum agentType = AgentType.AGENTMAIN.getValue(); } artifactCache = artifact; - adviserCache = new DefaultAdviser(); // Initialize default logs to ensure log availability before loading the log engine LoggerFactory.initDefaultLogger(artifact); + adviserCache = new DefaultAdviser(); // Initialize the classloader of framework ClassLoaderManager.init(argsMap); diff --git a/sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/common/LoggerFactory.java b/sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/common/LoggerFactory.java index 0df7bb33e4..0a2d1b234f 100644 --- a/sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/common/LoggerFactory.java +++ b/sermant-agentcore/sermant-agentcore-core/src/main/java/io/sermant/core/common/LoggerFactory.java @@ -97,7 +97,7 @@ public static Logger getLogger() { if (defaultLogger == null) { synchronized (LoggerFactory.class) { if (defaultLogger == null) { - defaultLogger = java.util.logging.Logger.getLogger("sermant"); + defaultLogger = java.util.logging.Logger.getLogger("sermant.default"); } } }