Log recording method and device

A log and tool technology, applied in the field of data processing, can solve the problems of cumbersome log recording operations, low log recording efficiency and management efficiency, and achieve efficient recording and management of logs and simple operations

Pending Publication Date: 2022-02-08
PEOPLE'S INSURANCE COMPANY OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present application is to provide a log recording method and device to solve the problems of cumbersome log recording operations and low log recording and management efficiency.

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
  • Log recording method and device
  • Log recording method and device
  • Log recording method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The embodiment of the present application provides a log recording method and device, which is simple in log recording operation, improves log recording efficiency and reduces management efficiency.

[0024] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0025] In some scenarios, when the Thrift framework is applied, the log record is to add corresponding log printing logic to each ent...

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 embodiment of the invention provides a log recording method and device, and the method comprises the steps: responding to a calling request, and calling remote service interfaces through a unified entrance used for calling a plurality of remote service interfaces and a servlet container of a server side by using a first tool class; aiming at the unified entry, acquiring a request parameter object in the calling request by utilizing a first tool class; for the remote service interface, obtaining a result data object corresponding to the calling request returned by the server side by using the first tool class; for the unified entry, calling a second tool class by using the first tool class, and performing log recording on the request parameter object and the result data object according to a predetermined unified log processing logic through the second tool class, wherein the first tool class is a dynamic agent class created based on a dynamic agent in JAVA reflection, and the second tool class is a log recording tool class created based on the dynamic agent in JAVA reflection.

Description

technical field [0001] The embodiments of the present application relate to the field of data processing, and in particular to a log recording method and device. Background technique [0002] Thrift is a remote procedure call framework that includes serialization functions and supports service communication. The framework is a client and server (Client / Server Structs, C / S) structure. [0003] In some scenarios, when the Thrift framework is applied, the log record is to add corresponding log printing logic to each entry of calling remote service on the calling end and each service interface of the server, and record the request parameters corresponding to calling the remote service interface and the remote The result data returned by the service interface. Add log printing logic to each service interface of the server to record the parameters requested by the caller and the result data returned by the server. In this way, when calling the entry of remote service, it is cumb...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F9/455G06F16/18
CPCG06F9/547G06F9/45558G06F16/1815G06F2009/4557G06F2009/45562G06F2209/544
Inventor 高标雄黎锦康徐勤李子旺余浩然黎晋廷
Owner PEOPLE'S INSURANCE COMPANY OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products