wu-sheng commented on a change in pull request #5914:
URL: https://github.com/apache/skywalking/pull/5914#discussion_r536559428



##########
File path: 
docs/en/setup/service-agent/java-agent/agent-optional-plugins/Logger-plugin.md
##########
@@ -0,0 +1,49 @@
+# Overview
+
+`logger-plugin` can store the logs generated by the program during the call, 
such as the content of the error log, into the span log.  Through the 
configuration file, you can control the log source (log4j2, logback, log4j), 
package name, and level.
+
+# Configuration file
+
+By default, the configuration file is in 
`apache-skywalking-apm-bin/agent/config//logger-plugin/logconfig.properties`.Of 
course, **If the file does not exist, the configuration will still be 
configured with the following default values:**
+
+```properties
+log4j.packages=*
+log4j.level=error
+log4j2.packages=*
+log4j2.level=error
+logback.packages=*
+logback.level=error
+```
+
+The meaning of the above configuration is as follows:
+
+1. It will process information from all logging systems, including `log4j`, 
`log4j2`, `logback`.
+2. Only the log information of the `error` level will be processed, and the 
log information lower than the `error` level will be ignored, including 
`trace`, `debug`, `info`, `warn`.
+3. It will match all packages.

Review comment:
       ```suggestion
   3. Wouldn't filter the logs by the package name.
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to