Core Module shenyu-pluign-logging-console.
Core Class org.apache.shenyu.plugin.logging.console.LoggingConsolePlugin
pom.xml file.<dependency> <groupId>org.apache.shenyu</groupId> <artifactId>shenyu-spring-boot-starter-plugin-logging-console</artifactId> <version>${project.version}</version> </dependency>
you must open loggingConsole plugin before you use loggingConsole plugin.
if the request arrived successfully, you will see request information as follow.
Request Uri: http://localhost:9195/test/payment
Request Method: POST
[Request Headers Start]
Content-Type: application/json
Content-Length: 46
Host: localhost:9195
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.13 (Java/11.0.11)
Cookie: JSESSIONID=CD325CE813F61BB37783A1D0835959DD
Accept-Encoding: gzip,deflate
[Request Headers End]
[Request Body Start]
{
"userId": "11",
"userName": "xiaoming"
}
[Request Body End]
Response Code: 200 OK
[Response Headers Start]
transfer-encoding: chunked
Content-Length: 37
Content-Type: application/json
[Response Headers End]
[Response Body Start]
{"userId":"11","userName":"xiaoming"}
[Response Body End]
shenyu-admin --> BasicConfig --> Plugin --> loggingConsole set Status disable.