Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Service system log recording method and system based on SDK package

A business system and recording method technology, applied in the direction of file system, file system type, database management system, etc., can solve the problem of insufficient information

Active Publication Date: 2021-02-05
HANGZHOU TIANKUAN TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Recording operation logs in filters or interceptors reduces the workload, but the recorded information is not comprehensive enough

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Service system log recording method and system based on SDK package

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047]The following describes the present invention in detail with reference to the drawings and specific embodiments.

[0048]Such asfigure 1 Shown is an SDK package-based business system log recording method of the present invention, which mainly includes the following steps: Step S1: Use the SDK package to first label the classes and methods obtained from the business service layer and assemble the generated label objects and save them to Redis cache. Step S2: The gateway service layer intercepts the REST interface address from the front-end service layer, and matches the corresponding label object from the redis cache through the REST interface address. Step S3: The gateway service layer parses the matched labeled objects to obtain a parsing result. Step S4: The gateway service layer also obtains the REST interface input parameter and the REST interface output parameter corresponding to the REST interface address. Step S5: The gateway service layer assembles the analysis result, th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a service system log recording method and system based on an SDK. The method comprises the following steps: carrying out first annotation on classes and methods obtained from aservice layer through the SDK, assembling to generate an annotation object, and storing the annotation object in a redis cache; enabling the gateway service layer to intercept the REST interface address from the front-end service layer, matching a corresponding annotation object from the redis cache through the REST interface address, and analyzing the matched annotation object to obtain an analysis result; and enabling the gateway service layer to acquire a REST interface input parameter and a REST interface output parameter corresponding to the REST interface address, and assembling the analysis result, the REST interface input parameter and the REST interface output parameter into an operation log and stores the operation log in a database. According to the service system log recordingmethod and system based on the SDK package, log recording work of the service system is achieved in a plug-in sdk package mode, reusability of log functions is improved, and redundant codes are reduced. The log record is simplified, and the accuracy and comprehensiveness of the log are ensured.

Description

Technical field[0001]The invention relates to a business system log recording method and system based on an SDK package.Background technique[0002]In the business system, in order to find the problem more conveniently, the operation log is usually recorded when the application system is being developed. In general, each business module needs to record logs based on actual business conditions. This brings additional workload to developers.[0003]There are mainly two existing methods of recording operation logs: 1. Record logs in each module according to actual business conditions. Although it is more flexible for each module to record the operation log by itself, the workload is heavy and a lot of redundant code will be generated. And the recorded logs are recorded by the developers of each module themselves, so the styles are quite different. 2. Log records of system global operations in filters or interceptors. Recording operation logs in filters or interceptors reduces the workload,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/18G06F16/25G06F16/2455G06F11/34
CPCG06F16/1815G06F16/252G06F16/24552G06F11/3476Y02D10/00
Inventor 裘力俊徐宏徐赟王家良耿明龚徐建
Owner HANGZHOU TIANKUAN TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products