1. Overview
1.1 Plugin Name
- Logging-HuaweiLts Plugin
1.2 Appropriate Scenario
- collect http request information to huawei lts, analysis request information by huawei lts platform.
1.3 Plugin functionality
- The gateway receives requests from the client, forwards them to the server, and returns the server results to the client. The gateway can record the details of each request,
- the plugin records access logs and sends to huawei lts platform.
1.4 Plugin code
-
Core Module
shenyu-plugin-logging-huawei-lts -
Core Class
org.apache.shenyu.plugin.huawei.lts.LoggingHuaweiLtsPlugin -
Core Class
org.apache.shenyu.plugin.huawei.lts.client.HuaweiLtsLogCollectClient
1.5 Added Since Which shenyu version
ShenYu 2.6.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.
- import maven config in shenyu-bootstrap project's
<!-- shenyu logging-huaweilts plugin start -->
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-spring-boot-starter-plugin-logging-huawei-lts</artifactId>
<version>${project.version}</version>
</dependency>
<!-- shenyu logging-huaweilts plugin end -->
2.3 Enable plugin
- In
shenyu-admin--> BasicConfig --> Plugin -->loggingHuaweiLtsset Status enable.