Supercharge Your Innovation With Domain-Expert AI Agents!

Attribute configuration method and device for log4j log framework and computer equipment

An attribute configuration and computer program technology, applied in the computer field, can solve the problems of inability to take effect quickly and time-consuming attribute configuration, and achieve the effect of solving the problem of inability to take effect quickly and taking a long time

Pending Publication Date: 2019-10-15
PING AN TECH (SHENZHEN) CO LTD
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main purpose of this application is to provide an attribute configuration method, device, computer equipment, and storage medium of a log4j log framework, aiming at solving the technical problems that attribute configuration takes a long time and cannot take effect quickly

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
  • Attribute configuration method and device for log4j log framework and computer equipment
  • Attribute configuration method and device for log4j log framework and computer equipment
  • Attribute configuration method and device for log4j log framework and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0045] refer to figure 1 , the embodiment of the present application provides a log4j log framework attribute configuration method, including the following steps:

[0046] S1. Receive an attribute configuration instruction for the log4j log framework, the attribute configuration instruction carries a specified attribute value;

[0047] S2. Call a preset configuration file according to the attribute configuration instruction, wherein a designated system variable placeholder is set at the position of the designated attribute in the configuration file, and the designated sys...

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 discloses an attribute configuration method and device for a log4j log framework, computer equipment and a storage medium. The attribute configuration method comprises the steps: receiving an attribute configuration instruction for the log4j log framework; according to the attribute configuration instruction, calling a preset configuration file, and arranging a specified system variable placeholder at the position of a specified attribute in the configuration file; acquiring the specified system variable by using a specified system variable placeholder; if the specified system variable is different from the specified attribute value, calling a preset system variable editing method to edit the specified system variable into the specified attribute value; and calling a preset configuration file loading method to enable the log4j log framework to update the current attribute value into the specified attribute value according to the configuration file so as to complete attribute configuration of the log4j log framework. Therefore, real-time attribute configuration is carried out on the log4j log framework, and the technical problems that attribute configuration consumes long time and cannot take effect quickly are solved.

Description

technical field [0001] The present application relates to the computer field, in particular to a property configuration method, device, computer equipment and storage medium of a log4j log framework. Background technique [0002] In the computer field, log records are often used, such as online problem tracking, log-based business logic statistical analysis, etc. are inseparable from logs. There are many log frameworks, among which the log4j log framework is a commonly used one. At present, when the existing technology performs attribute configuration (such as attribute modification) for the log4j log framework, the attribute content needs to be modified in the relevant configuration file, so the server needs to be restarted, so that the attribute configuration (such as attribute modification) takes a long time and cannot take effect quickly. Therefore, the prior art lacks a solution that can perform real-time attribute configuration on the log4j log framework and solve the...

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): G06F16/18G06F16/11
CPCG06F16/1815G06F16/122
Inventor 陈林丁磊磊
Owner PING AN TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More