Skip to content

Commit

Permalink
docs: support for get "easeagent.log.conf" from environment variable …
Browse files Browse the repository at this point in the history
…"EASEAGENT_LOG_CONF"
  • Loading branch information
lanxenet committed Sep 15, 2023
1 parent 98b3f2d commit 816faec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/user-manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,12 @@ After modification, User can run the application with EaseAgent.
$ export EASE_AGENT_PATH=[Replace with agent path]
$ java "-javaagent:${EASE_AGENT_PATH}/easeagent.jar -Deaseagent.log.conf=${EASE_AGENT_PATH}/easeagent-log4j2.xml" -jar user-app.jar
```
or
```
$ export EASE_AGENT_PATH=[Replace with agent path]
$ export EASEAGENT_LOG_CONF=/your/log4j2/config/filepath
$ java "-javaagent:${EASE_AGENT_PATH}/easeagent.jar -jar user-app.jar
```
### MDC
Easeagent automatically adds TraceId and SpanId to the MDC (Mapped Diagnostic Context) when creating a new Span. You can configure your slf4j or logback files by adding parameters to display these IDs, or retrieve them directly from the MDC in your code.
Expand Down

0 comments on commit 816faec

Please sign in to comment.