1. Overview
1.1 Plugin Name
- Logging-Console Plugin
1.2 Appropriate Scenario
- Users may want to view the information about request(including request headers, request parameters, response headers, response body...etc) where in the side of gateway when debugging during development or troubleshooting problems online.
1.3 Plugin functionality
- Collect http request url, header, request body, response and response body by logback or log4j, the log file will be saved locally.
1.4 Plugin code
-
Core Module
shenyu-pluign-logging-console. -
Core Class
org.apache.shenyu.plugin.logging.console.LoggingConsolePlugin
1.5 Added Since Which shenyu version
- Since ShenYu 2.4.0
2. How to use plugin
2.1 Plugin-use procedure chart

2.2 Import pom
- import maven config in shenyu-bootstrap project's
pom.xmlfile.
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-spring-boot-starter-plugin-logging-console</artifactId>
<version>${project.version}</version>
</dependency>
2.3 Enable plugin
- In shenyu-admin --> BasicConfig --> Plugin --> loggingConsole set Status enable.
2.4 Config plugin
- Selector and rule Config. Please refer: Selector and rule config.