Adjustment method and device for log data

An adjustment method and log technology, applied in hardware monitoring and other directions, can solve problems such as troublesome operation, and achieve the effect of simple operation and high adjustment efficiency.

Active Publication Date: 2015-01-14
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the embodiments of the present invention is to provide a log data adjustment method to solv

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
  • Adjustment method and device for log data
  • Adjustment method and device for log data
  • Adjustment method and device for log data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] figure 1 The implementation flow of log data adjustment provided by the first embodiment of the present invention is shown, and the details are as follows:

[0025] In step S101, a startup instruction for running an application program to be tested is received.

[0026] When debugging the application to be tested or locating problems, it is usually analyzed according to the log data results generated when the application is running.

[0027] When the application program is started, the configuration file has been set in the specified location, and the location of the configuration file is generally stored in the configuration folder under the installation directory of the application program.

[0028] The application programs to be tested may include various software programs running on computers, and also include application programs applied in mobile terminals.

[0029] In step S102, according to the startup instruction, the configuration information for adjusting l...

Embodiment 2

[0056] Figure 5 The structural diagram of the log data adjustment device provided in the second embodiment of the present invention is described in detail as follows:

[0057] The log data adjustment device 500 in the embodiment of the present invention includes a receiving unit 501, a reading and analyzing unit 502, and an initialization printing unit 503, wherein:

[0058] A receiving unit 501, configured to receive a startup instruction for running the application program to be tested;

[0059] The reading analysis unit 502 is configured to read and analyze configuration information for adjusting log data pre-stored in the configuration file according to the startup instruction received by the receiving unit 501;

[0060] The initialization printing unit 503 is configured to initialize the configuration information according to the configuration information parsed by the reading and analyzing unit, and print out log data according to the configuration information.

[006...

Embodiment 3

[0073] Figure 6 Shown is a block diagram of a part of the structure related to the device provided by the embodiment of the present invention. refer to Figure 6 , the device can be a mobile phone or a computer, which includes: a radio frequency (Radio Frequency, RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, and a wireless fidelity (wireless fidelity, WiFi) module 670 , processor 680, and power supply 690 and other components. Those skilled in the art can understand that, Figure 6 The device structure shown in the device does not constitute a limitation to the device, and may include more or less components than shown, or combine some components, or arrange different components.

[0074] Combine below Figure 6 A detailed introduction to each component of the equipment:

[0075] The RF circuit 610 can be used for sending and receiving information or receiving and sending signals during a call. In particular, af...

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 belongs to the field of log information and provides an adjustment method and device for log data. The method includes the steps that a startup instruction for running an application program to be tested is received; according to the startup instruction, configuration information prestored in a configuration file and used for adjusting the log data is read and analyzed; the configuration information is initialized; the log data are printed and output according to the configuration information. According to the adjustment method, it is only required that the configuration file is modified, the configuration information in the configuration file is initialized, and the log data are printed and output according to the configuration information so as to adjust the log output information, and compared with the mode of modifying codes of the program to be tested, recompiling projects and reinstalling the program in the prior art, the adjustment method is easy to operate and higher in adjustment efficiency.

Description

technical field [0001] The invention belongs to the field of software log information, in particular to a log data adjustment method and device. Background technique [0002] During the development or operation of network devices, systems, and service programs, in order to facilitate debugging and problem location, a large number of log codes are usually added to the software code to make it output log data during operation or debugging for developers. For research and analysis purposes. [0003] In the general development process of large and medium-sized projects, due to the large number of developers and the division of modules, each developer will add his own log code in his own module. During software running or debugging, the developers of each module usually only want to see the log data generated by the log code they added and filter out other useless information. And with the continuous update of the engineering code, the log data required for debugging and testin...

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): G06F11/34
Inventor 李思广
Owner TENCENT TECH (SHENZHEN) 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