Method and device for changing log levels

A log and level technology, applied in the computer field, can solve problems such as the need to restart system services, and achieve strong scalability and good cross-platform effects
CN105843822AInactive Publication Date: 2016-08-10ULTRAPOWER SOFTWARE

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Applications(China)
Current Assignee / Owner
ULTRAPOWER SOFTWARE
Publication Date
2016-08-10
Estimated Expiration
Not applicable Β· inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method and a device for modifying the log level. The method includes: receiving an http request sent by a web browser to modify the log level of the java log framework log4j, wherein the http request includes parameter information after log level modification; parsing out the log level modification from the http request After the parameter information; call the log4j interface, the log level of the log4j is dynamically modified according to the modified parameter information of the log level; output the log4j log according to the modified log level. The technical scheme of the present invention can dynamically modify the log level of log4j by sending an http request, without restarting the java application system or service, so that the maintenance personnel can immediately check the information of the log level, which is convenient for locating system problems; after the maintenance personnel find the problem, they can Change the log level to advanced in time to reduce the amount of log output, reduce resource consumption, and shorten the time cost of operation and maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of computer technology, in particular to a method and device for modifying log levels. Background technique

[0002] In today's emphasis on the development of reusable components, in addition to developing a reusable log operation class from beginning to end, Apache provides us with a powerful java log framework Log4j.

[0003] Log4j is a Java-based open source log component. Log4j is very powerful. We can output log information to the console, file, user interface, or to the event recorder of the operating system and some system resident processes. Through Log4j, it is very convenient to customize the log format and log level, which can help developers to control the log information in all directions. Generally, when a problem occurs in a Java system and the system log needs to be searched, the operation and maintenance personnel usually adjust the log4j log level to debug to obtain more log information.

[0004] T...

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