Method and device for adjusting log level of equipment, storage medium and electronic device

An adjustment method and level technology, applied in the computer field, can solve the problem of log level division taking a long time, unable to effectively verify the rationality of the level, etc., to achieve the effect of solving the long time-consuming division

Inactive Publication Date: 2020-12-18
GREE ELECTRIC APPLIANCES INC
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device, a storage medium, and an electronic device for adjusting log levels of equipment, so as to at least solve the problems in the related art that the division of log levels takes a long time and cannot effectively verify the rationality of the levels

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
  • Method and device for adjusting log level of equipment, storage medium and electronic device
  • Method and device for adjusting log level of equipment, storage medium and electronic device
  • Method and device for adjusting log level of equipment, storage medium and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0019] The method embodiment provided in Embodiment 1 of the present application may be executed in a terminal, a computer terminal, or a similar computing device. Take running on the terminal as an example, figure 1 It is a hardware structural block diagram of a terminal of a method for dynamically identifying data sources in an embodiment of the present invention. Such as figure 1 As shown, the terminal 10 may include one or more ( figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA) and memory 104 for storing data. Optionally, the above-mentioned terminal can also be A transmission device 106 for communication functions and an input and output device 108 are included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and does not limit the structure of the above-mentioned terminal. ...

Embodiment 2

[0053] In this embodiment, a device for identifying a data source is also provided, and the device is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

[0054] Figure 4 is a structural schematic diagram of a device log level adjustment device according to an embodiment of the present invention, such as Figure 4 As shown, the device includes:

[0055] Obtaining module 42, used for obtaining the operating conditions of the equipment;

[0056] The adjustment module 44 is configured to adjust the log level of the current device according to the operation situation.

[0057] Op...

Embodiment 3

[0064] An embodiment of the present invention also provides a storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.

[0065] Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:

[0066] S1, obtaining the operation status of the device;

[0067] S2. Adjust the log level of the current device according to the operation situation.

[0068] Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), Various media that can store computer programs, such as removable hard disks, magnetic disks, or optical disks.

[0069] An embodiment of the present invention also provides an electronic device, including a memory and ...

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 provides a method and device for adjusting the log level of equipment, a storage medium and an electronic device. The method comprises the steps that the operation condition of the equipment is acquired; and the log level of the current equipment is adjusted according to the running condition. According to the invention, the problems of long time consumption for dividing the log levels and incapability of effectively verifying the rationality of the levels in the prior art are solved.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a method and device for adjusting log levels of equipment, a storage medium and an electronic device. Background technique [0002] Logging functions are common on computers, mobile phones, and similar electronic products. The common practice in the industry is to divide logs into several levels, which are four basic levels: debugging, warning, error, and serious error. The device defines in advance which log level the various types of information output belong to, and then outputs various types of information according to preset rules and executes corresponding actions. [0003] In the prior art, it is necessary to first define the log type, and to specify in advance what log level the position belongs to in the position where the log needs to be printed in the program, so as to finally complete the accurate output. There are two main problems in this approach: 1) For complex e...

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): G06F11/34G06F16/18
CPCG06F11/3476G06F16/1815
Inventor 董玉红关富文赵越
Owner GREE ELECTRIC APPLIANCES INC
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