Unlock instant, AI-driven research and patent intelligence for your innovation.

Log output method and device and computer readable storage medium

An output method and log technology, applied in computing, hardware monitoring, instruments, etc., can solve the problems of difficult log output, insufficient positioning, limited output log, etc., to achieve the effect of improving processing efficiency and reducing output

Active Publication Date: 2020-05-15
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the number of log printing can be controlled by adjusting the log level, when the log level is small, the output log will be limited, which is not enough to locate the problem, and it is difficult to control the log output at the function level. A large number of log output or limited log output will be Affects the difficulty and efficiency of problem location

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 output method and device and computer readable storage medium
  • Log output method and device and computer readable storage medium
  • Log output method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described 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 making creative efforts belong to the protection scope of the present invention.

[0048] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0049] Next, a log output method provided by an embodiment of the present invention is described in detail. figure 1 A flow chart of a log output method provided by an embodiment of the present inven...

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 discloses a log output method and device and a medium, and the method comprises the steps: checking whether a module name and a function name carried in an inter-process communication instruction meet preset requirements or not when the inter-process communication instruction is received; and storing the module names and the function names meeting the preset requirements into a preset data structure; when the log printing statement is operated, querying whether a record matched with the target module name and the target function name to which the log printing statement belongs exists in the data structure or not: if so, putting the log information corresponding to the target module name and the target function name into a log cache list; when the log information recorded in the log cache list meets a preset condition, writing the log information in the log cache list into a preset log file. The logs to be printed are dynamically adjusted through an inter-process communication instruction, and the output of a large amount of irrelevant log information is reduced; through the batch writing of the log information, the processing efficiency of the log information is further improved.

Description

technical field [0001] The present invention relates to the technical field of distributed storage, in particular to a log output method, device and computer-readable storage medium. Background technique [0002] In a distributed system, each sub-module has a corresponding log thread to facilitate problem location and function debugging. After the sub-module log is enabled through inter-process communication, because there are many print statements in the function log, a large number of irrelevant messages will be output. Log information, which makes troubleshooting more difficult. [0003] In order to reduce the printing of irrelevant logs, the most commonly used solution is to set the printing level of the log when calling the printing function, and control the log output volume by dynamically adjusting the level. Although the number of log printing can be controlled by adjusting the log level, when the log level is small, the output log will be limited, which is not enou...

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/18G06F11/34
CPCG06F16/1815G06F11/3476
Inventor 苏志恒张端
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD