Skip to content

Commit

Permalink
Fix #44 Resolve log4j2 configuration conflict (#116)
Browse files Browse the repository at this point in the history
- change the default agent default file name to avoid conflict bwtween
  agent and user's application
  • Loading branch information
jzw authored Sep 9, 2021
1 parent 5199b70 commit e7302fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion loader/src/main/java/com/megaease/easeagent/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private static void switchLoggingProperty(ClassLoader loader, String hostKey, Ca
t.setContextClassLoader(loader);

final String host = System.getProperty(hostKey);
final String agent = System.getProperty(Main.EASEAGENT_LOG_CONF, "log4j2.xml");
final String agent = System.getProperty(Main.EASEAGENT_LOG_CONF, "easeagent-log4j2.xml");

// Redirect config of host to agent
System.setProperty(hostKey, agent);
Expand Down

0 comments on commit e7302fa

Please sign in to comment.