Unified log assembly

A log file and log technology, which is applied in the computer field, can solve the problems of complex configuration, inconsistency of various logs, and inability to use log components to meet requirements, so as to improve security, realize configuration and monitoring management, and facilitate statistical analysis of data. Effect

Pending Publication Date: 2020-02-11
HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF22 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The problem to be solved by the present invention is: the use of existing log components cannot meet the requirements, there are problems such as low tracking performance, various logs are not unified, it is difficult to collect and use, it is not easy to adjust, and the configuration is complicated.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The invention proposes a same log component for managing log files, and the component of the invention can facilitate the management of application log files.

[0027] A unified log component access application of the present invention realizes the following contents through a computer program:

[0028] 1) The traceId is generated by skywalking, and the log component obtains the traceId through the ThreadLocal of the current thread, and then outputs it to the log file, and traces the entire calling link according to the traceId. ThreadLocal is a tool class in the Java programming language to ensure thread safety of variables. Each traceId is guaranteed by a fixed-length character string. The present invention further improves the traceId. The production algorithm of the traceId in the present invention is: time stamp+computer room+server id+self-incrementing serial number accurate to milliseconds, now The conventional algorithm with skywalking is: application id + thre...

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 unified log component, which is used for managing a log file of an application, and realizes the following contents: 1) trace Id is acquired and outputted to the log file, and tracking a whole calling link according to the trace Id; 2) the log component comprises a log configuration file in a unified log format and is used for outputting the log file in a unified format;and 3) the change of the log configuration of the application is monitored by the log component, and correspondingly adjusting the log file according to a change item. According to the log component,the log file of the application can be conveniently managed. A whole calling link can be tracked according to the trace Id; the log file of the unified format is generated so that data statistical analysis is facilitated. Dynamic log level adjustment is achieved, revision searchability and safety are achieved through the log assembly, the log assembly can be more conveniently configured through the management platform, the use safety of the log component is improved, and the log files possibly influencing the application performance are monitored. The existing application is easy to access, and configuration and monitoring management of the log file are realized.

Description

technical field [0001] The invention belongs to the technical field of computers, relates to the management of log files, and is a unified log component. [0002] technical background [0003] With the development of Internet technology in the past 10 years, logs have played an increasingly important role in applications, such as troubleshooting, big data statistics, user portraits, etc.; and the premise of all this is a simple and easy-to-use log output component. [0004] Most of the current log components have the following defects: [0005] 1. Without traceId, the entire calling link cannot be traced, and the execution status of the link is unknown, which is not convenient for system optimization and troubleshooting. [0006] 2. The log format, cutting method, and storage path are not uniform among different applications, which brings great troubles to log collection, data statistics, and operation analysis. [0007] 3. The ability to adjust the log level is not provide...

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): G06F8/20G06F8/71G06F16/17G06F16/18
CPCG06F8/20G06F8/71G06F16/1815G06F16/1734
Inventor 纪森
Owner HANGZHOU TUYA INFORMATION TECH CO LTD
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