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

A log dynamic monitoring method and device

A dynamic monitoring and logging technology, applied in hardware monitoring, instrumentation, error detection/correction, etc., can solve problems such as the inability to dynamically output log content and the inability to dynamically change the Appender configuration, so as to reduce the amount of log data, save time, and improve work The effect of efficiency

Active Publication Date: 2021-12-31
山东亚华电子股份有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a log dynamic monitoring method and device, which are used to solve the following technical problems: the existing log output method cannot dynamically output wrong log content, and cannot dynamically change the Appender configuration

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
  • A log dynamic monitoring method and device
  • A log dynamic monitoring method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to enable those skilled in the art to better understand the technical solutions in the present application, 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 application, but not all of them. Based on the embodiments of this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0026] First of all, the embodiment of this application provides a dynamic log monitoring method. This application is developed on the basis of logback. First, a restful interface is developed. After opening the restful interface, the staff can input the target file name, Appender name, output Path name, Appender target survival time (T...

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 application discloses a log dynamic monitoring method and equipment, which relate to the field of log monitoring, and the application type is an invention. It is used to solve the problem that the existing log output method cannot dynamically output the specified log content, nor can it dynamically change the Appender configuration. The method includes: creating an Appender object in response to the operation of calling the restful interface by the caller; determining the log output range of the Appender object according to the target file name input by the caller; determining the log output level and log output range of the Appender object based on preset rules strategy and log output format; determine the log output path of the Appender object according to the output path name input by the caller; start the Appender object, and write the log content in the log output range according to the log output level, log output policy, and log output format into the log output path.

Description

technical field [0001] The present application relates to the field of log monitoring, in particular to a method and device for dynamic log monitoring. Background technique [0002] At present, most of the system log functions can print all the logs of each functional module in the system. When there is a problem with a certain functional module of the system, you can troubleshoot the problem through the log. Logback is an open source log component that can provide access log functions. [0003] When accessing logs through Logback, a very important component is needed: the Appender component. The Appender component is the component that performs log output in Logback. By setting the Appender configuration in the logback.xml file in advance, the system can base the output scope, log level, log file name, log file size, Encoding format and other parameters, output the corresponding log. However, this method needs to set the Appender configuration in the logback.xml file in...

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 Patents(China)
IPC IPC(8): G06F11/30
CPCG06F11/3065G06F11/3093
Inventor 韩帅范春晓宋可鑫李世健
Owner 山东亚华电子股份有限公司
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