CN114218180A - Method and device for adjusting and printing log level of running state system - Google Patents

Method and device for adjusting and printing log level of running state system Download PDF

Info

Publication number
CN114218180A
CN114218180A CN202111512114.0A CN202111512114A CN114218180A CN 114218180 A CN114218180 A CN 114218180A CN 202111512114 A CN202111512114 A CN 202111512114A CN 114218180 A CN114218180 A CN 114218180A
Authority
CN
China
Prior art keywords
matching
program
log
obtaining
matching rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111512114.0A
Other languages
Chinese (zh)
Inventor
彭飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Citic Bank Corp Ltd
Original Assignee
China Citic Bank Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Citic Bank Corp Ltd filed Critical China Citic Bank Corp Ltd
Priority to CN202111512114.0A priority Critical patent/CN114218180A/en
Publication of CN114218180A publication Critical patent/CN114218180A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1296Printer job scheduling or printer resource handling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Strategic Management (AREA)
  • Human Computer Interaction (AREA)
  • Marketing (AREA)
  • Mathematical Physics (AREA)
  • Development Economics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for adjusting and printing log levels of an operating system, wherein first matching rule information is obtained according to a program type by obtaining the program type, wherein the first matching rule information is a rule set for adjusting the log levels and/or allowing logs to be printed, and the first matching rule information comprises a matching rule before operation and a matching rule after operation; when the program runs, obtaining the running state of the program, wherein the running characteristic of the program is an attribute used for rule matching in the program; performing feature matching on the features of the program in operation according to the first matching rule information; and when the matching is successful, obtaining a first execution instruction to perform corresponding operation on the log of the program according to the first matching rule information. The technical problem that the log level cannot be dynamically adjusted according to transaction dimensions and transaction service characteristics is solved. The method achieves the technical effects of dynamically adjusting the application log level of the running state system by using the matching rule, printing the log in a targeted manner and flexibly configuring.

Description

Method and device for adjusting and printing log level of running state system
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for adjusting and printing log levels of a running state system.
Background
Log frameworks commonly used in the industry are Logback, Log4j, etc., and Log4j is a Java-based open-source Log class library managed by the Apache foundation. The Logback is a Java-based Open-source log class library issued by Quality Open Software, and can dynamically modify the log level of a global or a certain class when a system runs, but cannot dynamically adjust the log level according to transaction dimensions, and cannot automatically adjust the log level according to transaction service characteristics.
However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the inventors of the present application find that the above-mentioned technology has at least the following technical problems:
the technical problem that the log level can not be dynamically adjusted according to transaction dimensions and transaction service characteristics exists in the prior art.
Disclosure of Invention
The embodiment of the application provides a method and a device for log level adjustment and printing of an operation state system, and solves the technical problem that the log level cannot be dynamically adjusted according to transaction dimensions and transaction service characteristics in the prior art. The method achieves the technical effects of dynamically adjusting the application log level of the running system by using the matching rule, printing the log in a targeted manner, having flexible configuration, realizing refined and visualized management of the application log, and greatly saving the system overhead caused by opening all the logs.
In view of the foregoing problems, embodiments of the present application provide a method and an apparatus for log level adjustment and printing in a running state system.
In a first aspect, an embodiment of the present application provides a method for adjusting and printing a log level of an operating system, where the method includes: obtaining a program type, wherein the program is an application program in a running state system; obtaining first matching rule information according to the program type, wherein the first matching rule information is a rule set for adjusting the log level and/or allowing the log to be printed, and the first matching rule information comprises a matching rule before running and a matching rule after running; when a program runs, obtaining a program running characteristic, wherein the program running characteristic is a running state of an attribute used for rule matching in the program; performing feature matching on the features of the program in operation according to the first matching rule information; and when the matching is successful, obtaining a first execution instruction, wherein the first execution instruction is used for carrying out corresponding operation on the log of the program according to the first matching rule information.
Preferably, before performing feature matching on the program runtime features according to the first matching rule information, the method includes: acquiring an operation range according to the first matching rule information; and loading the first matching rule information to a corresponding storage space for management according to the operation range.
Preferably, the method comprises: acquiring system layering information, and arranging a log entrance guard on each layer, wherein the log entrance guard can control the operation of the matching rule information; obtaining approach data; carrying out data matching on the approach data according to the matching rule information; and when the matching is successful, obtaining a second execution instruction, wherein the second execution instruction is used for adjusting the corresponding thread-level log level to an expected level at each layered entrance and recovering the thread-level log level at the exit.
Preferably, the log entrance guard has an alarm interface, and the alarm interface is connected with an alarm control center, and the method includes: acquiring a program abnormal event; acquiring first alarm information according to the program abnormal event, wherein the first alarm information is used for reporting the program abnormal position and the approach data to the alarm control center through the alarm interface connection and storing the program abnormal position and the approach data in an alarm record; analyzing the alarm record through the alarm control center to obtain a first data characteristic value; sending the first data characteristic value to the log gatekeeper for characteristic value updating, and obtaining a second matching rule according to the first data characteristic value; and according to the second matching rule, obtaining a third execution instruction, wherein the third execution instruction is used for automatically adjusting the corresponding log level to an expected log level when the first data characteristic value is matched.
Preferably, in this embodiment of the present application, the log guards share an external configurable feature matcher in the same hierarchy, and the log guards call the feature matcher in sequence, where the method includes: obtaining the approach data; the characteristic matcher performs characteristic extraction on the approach data to obtain a second data characteristic value; matching the characteristic values according to the second data characteristic values and the second matching rules; and when the second data characteristic value meets the second matching rule, obtaining a fourth execution instruction, wherein the fourth execution instruction is used for modifying the related log level into an expected log level according to the matching result.
Preferably, the method comprises: obtaining preset matching times; and when the times of successful matching between the data specific value and the matching rule reach the preset matching times, obtaining a first logout instruction, wherein the first logout instruction is used for automatically logging out the characteristic matcher.
Preferably, the method comprises: obtaining the state of the log entrance guard; when the state of the log entrance guard is enabled, judging whether the current program type enables the log entrance guard; when the current program type enables the log entrance guard, obtaining a first matching instruction, wherein the first matching instruction is used for matching the matching rule in the system according to the current program type; obtaining a third matching rule according to the first matching instruction, wherein the third matching rule is all matching rules before operation corresponding to the current program type; performing feature matching on the features of the program in operation according to the third matching rule to obtain a third matching result; when the third matching result is that matching is successful, obtaining a fifth execution instruction, wherein the fifth execution instruction is used for adjusting the log level of the current program execution thread to be a waiting level, and caching the logs which meet the expected level and do not meet the global default log level when the program runs in a memory; when the third matching result is not matched, a sixth execution instruction is obtained, and the sixth execution instruction is used for judging whether the characteristics of the program operation result are matched with the matching rule after the current program is operated or not after the current program is operated; obtaining a fourth matching result according to the sixth execution instruction; obtaining a seventh execution instruction according to the fourth matching result, wherein the seventh execution instruction is a cache log of a printing program when the fourth matching result is that matching is successful; and when the fourth matching result is not matched, emptying the cache log of the current program.
Preferably, after the fifth execution instruction is obtained when the third matching result is that the matching is successful, the method includes: executing the sixth execution instruction before the current program operation is finished; and obtaining a first recovery instruction according to the sixth execution instruction, wherein the first recovery instruction is used for recovering the current program execution thread to the original log level after the sixth execution instruction is completed.
On the other hand, the application also provides a device for adjusting and printing the log level of the running state system, and the device comprises:
the first obtaining unit is used for obtaining a program type, and the program is an application program in a running state system;
a second obtaining unit, configured to obtain first matching rule information according to the program type, where the first matching rule information is a rule set for adjusting a log level and/or allowing a log to be printed, and the first matching rule information includes a matching rule before running and a matching rule after running;
a third obtaining unit, configured to obtain, when a program runs, a program run-time characteristic, where the program run-time characteristic is a run-time state of an attribute for rule matching in the program;
the first matching unit is used for carrying out feature matching on the features of the program in operation according to the first matching rule information;
and the fourth obtaining unit is used for obtaining a first execution instruction when the matching is successful, wherein the first execution instruction is used for carrying out corresponding operation on the log of the program according to the first matching rule information.
Preferably, the apparatus further comprises:
a fifth obtaining unit, configured to obtain an operation range according to the first matching rule information;
and the first execution unit is used for loading the first matching rule information to a corresponding storage space for management according to the operating range.
Preferably, the apparatus further comprises:
a sixth obtaining unit, configured to obtain system hierarchical information, where a log gatekeeper is set in each layer, and the log gatekeeper can control operation of the matching rule information;
a seventh obtaining unit configured to obtain approach data;
the second matching unit is used for carrying out data matching on the approach data according to the matching rule information;
an eighth obtaining unit, configured to, when matching is successful, obtain a second execution instruction, where the second execution instruction is to adjust a corresponding thread-level log level to a desired level at each hierarchical entry, and restore the thread-level log level at an exit.
Preferably, the apparatus further comprises:
a ninth obtaining unit configured to obtain a program exception event;
a tenth obtaining unit, configured to obtain first alarm information according to the program abnormal event, where the first alarm information is used to send a program abnormal position and approach data to the alarm control center through the alarm interface connection and store the program abnormal position and the approach data in an alarm record;
an eleventh obtaining unit, configured to analyze the alarm record through the alarm control center to obtain a first data characteristic value;
the second execution unit is used for sending the first data characteristic value to the log gatekeeper for characteristic value updating, and acquiring a second matching rule according to the first data characteristic value;
a twelfth obtaining unit, configured to obtain a third execution instruction according to the second matching rule, where the third execution instruction is used to automatically adjust a corresponding log level to an expected log level when the first data feature value is matched.
Preferably, the apparatus further comprises:
a thirteenth obtaining unit configured to obtain the approach data;
a fourteenth obtaining unit, configured to perform feature extraction on the approach data by using the feature matcher, so as to obtain a second data feature value;
a third matching unit, configured to perform feature value matching according to the second data feature value and the second matching rule;
a fifteenth obtaining unit, configured to obtain a fourth execution instruction when the second data feature value satisfies the second matching rule, where the fourth execution instruction is configured to modify the relevant log level to the expected log level according to the matching result.
Preferably, the apparatus further comprises:
a sixteenth obtaining unit configured to obtain a predetermined number of times of matching;
a seventeenth obtaining unit, configured to obtain a first logout instruction when the number of times that the matching of the data specific value and the matching rule is successful reaches the predetermined matching number, where the first logout instruction is used to automatically logout the feature matcher.
Preferably, the apparatus further comprises:
an eighteenth obtaining unit configured to obtain a state of the log gatekeeper;
the first judging unit is used for judging whether the current program type enables the log entrance guard or not when the state of the log entrance guard is enabled;
a nineteenth obtaining unit, configured to obtain a first matching instruction when the current program type enables the journal gatekeeper, where the first matching instruction is used to match the matching rule in the system according to the current program type;
a twentieth obtaining unit, configured to obtain a third matching rule according to the first matching instruction, where the third matching rule is all matching rules before running corresponding to the current program type;
a twenty-first obtaining unit, configured to perform feature matching on the features of the program during running according to the third matching rule, and obtain a third matching result;
a twenty-second obtaining unit, configured to obtain a fifth execution instruction when the third matching result is that matching is successful, where the fifth execution instruction is to adjust a log level of a current program execution thread to a pending level, and cache, in a memory, a log that meets an expected level and does not meet a global default log level when the program runs;
a twenty-third obtaining unit, configured to obtain a sixth execution instruction when the third matching result is not matched, where the sixth execution instruction is to judge whether a program operation result feature is matched with an after-operation matching rule of the current program type after the current program is finished to operate;
a twenty-fourth obtaining unit, configured to obtain a fourth matching result according to the sixth execution instruction;
a twenty-fifth obtaining unit, configured to obtain a seventh execution instruction according to the fourth matching result, where the seventh execution instruction is a cache log of a print program when the fourth matching result is a successful matching; and when the fourth matching result is not matched, emptying the cache log of the current program.
Preferably, the apparatus further comprises:
a third execution unit, configured to execute the sixth execution instruction before the current program operation is finished;
a twenty-sixth obtaining unit, configured to obtain a first recovery instruction according to the sixth execution instruction, where the first recovery instruction is used to recover the current program execution thread to an original log level after the sixth execution instruction is completed.
In a third aspect, the present invention provides an apparatus for log level adjustment and printing of a running state system, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of the first aspect when executing the program.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the embodiment of the application provides a method and a device for adjusting and printing log levels of an operating system, wherein a program type is obtained, and the program is an application program in the operating system; obtaining first matching rule information according to the program type, wherein the first matching rule information is a rule set for adjusting the log level and/or allowing the log to be printed, and the first matching rule information comprises a matching rule before running and a matching rule after running; when a program runs, obtaining a program running characteristic, wherein the program running characteristic is a running state of an attribute used for rule matching in the program; performing feature matching on the features of the program in operation according to the first matching rule information; and when the matching is successful, obtaining a first execution instruction, wherein the first execution instruction is used for carrying out corresponding operation on the log of the program according to the first matching rule information. The method and the device realize dynamic adjustment of the application log level of the running state system by using the matching rule and targeted log printing, have flexible configuration, realize refined and visualized management of the application log, and can greatly save the technical effect of system overhead of opening all logs. Therefore, the technical problem that the log level can not be dynamically adjusted according to transaction dimensions and transaction service characteristics in the prior art is solved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Fig. 1 is a schematic flowchart illustrating a method for adjusting and printing log levels of an operating system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an apparatus for log level adjustment and printing of an operating system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an exemplary electronic device according to an embodiment of the present application.
Description of reference numerals: a first obtaining unit 11, a second obtaining unit 12, a third obtaining unit 13, a first matching unit 14, a fourth obtaining unit 15, a bus 300, a receiver 301, a processor 302, a transmitter 303, a memory 304, and a bus interface 306.
Detailed Description
The embodiment of the application provides a method and a device for log level adjustment and printing of an operation state system, and solves the technical problem that the log level cannot be dynamically adjusted according to transaction dimensions and transaction service characteristics in the prior art. The method achieves the technical effects of dynamically adjusting the application log level of the running system by using the matching rule, printing the log in a targeted manner, having flexible configuration, realizing refined and visualized management of the application log, and greatly saving the system overhead caused by opening all the logs.
Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are merely some embodiments of the present application and not all embodiments of the present application, and it should be understood that the present application is not limited to the example embodiments described herein.
Summary of the application
Log frameworks commonly used in the industry are Logback, Log4j, etc., and Log4j is a Java-based open-source Log class library managed by the Apache foundation. The Logback is a Java-based Open-source log class library issued by Quality Open Software, and can dynamically modify the log level of a global or a certain class when a system runs, but cannot dynamically adjust the log level according to transaction dimensions, and cannot automatically adjust the log level according to transaction service characteristics.
In view of the above technical problems, the technical solution provided by the present application has the following general idea:
the embodiment of the application provides a method for adjusting and printing the log level of an operating system, and a program type is obtained, wherein the program is an application program in the operating system; obtaining first matching rule information according to the program type, wherein the first matching rule information is a rule set for adjusting the log level and/or allowing the log to be printed, and the first matching rule information comprises a matching rule before running and a matching rule after running; when a program runs, obtaining a program running characteristic, wherein the program running characteristic is a running state of an attribute used for rule matching in the program; performing feature matching on the features of the program in operation according to the first matching rule information; and when the matching is successful, obtaining a first execution instruction, wherein the first execution instruction is used for carrying out corresponding operation on the log of the program according to the first matching rule information. The method achieves the technical effects of dynamically adjusting the application log level of the running system by using the matching rule, printing the log in a targeted manner, having flexible configuration, realizing refined and visualized management of the application log, and greatly saving the system overhead caused by opening all the logs.
Having thus described the general principles of the present application, various non-limiting embodiments thereof will now be described in detail with reference to the accompanying drawings.
Example one
Fig. 1 is a schematic flowchart of a method for adjusting and printing a log level of an operating system according to an embodiment of the present application, and as shown in fig. 1, an embodiment of the present application provides a method for adjusting and printing a log level of an operating system, where the method includes:
step 100: and obtaining the type of the program, wherein the program is an application program in the running state system.
Step 200: and obtaining first matching rule information according to the program type, wherein the first matching rule information is a rule set for adjusting the log level and/or allowing the log to be printed, and the first matching rule information comprises a matching rule before running and a matching rule after running.
Specifically, a set of matching rules is customized in advance for a program type and a state characteristic of the program, wherein the matching rules can be set for a specific user, a specific transaction, a specific time and a specific operation rule based on a service characteristic of a runtime transaction, a rule set according to the characteristic of the application program is set in the matching rules, when the corresponding characteristic is matched, the corresponding log level is dynamically adjusted or the log is printed in a targeted manner according to the corresponding content of the matching rule, and if a certain type of operation error occurs in the program of the specified type, the corresponding error output field characteristic, the corresponding position and the program operation log are sent and printed. The matching rules can set triggering rules according to business rules, and once the rules are matched, the transaction log level can be dynamically adjusted. The matching rules can be flexibly configured according to the rule running period and the running range, different transaction characteristic items and the self-defined rules. In addition, the matching rules comprise matching rules before running and matching rules after running, wherein the corresponding rules corresponding to the dynamic log adjustment level belong to the matching rules during running, and the matching rules are matched before the program runs, and the matching rules corresponding to the log alarm and the specific printing log are matched after the program runs, so the matching rules after running are matched. The first matching rule information in this embodiment is a rule set that allows logs to be printed, for example, periodic printing that is printed once at intervals or printing at designated time points; or the screening rule of the attribute value when the program runs; or the rule execution time can be the rule execution time, such as rule matching before program operation, rule matching after program operation, or rule matching before and after program operation.
Step 300: when the program runs, program running characteristics are obtained, and the program running characteristics are the running state of the attribute used for rule matching in the program.
Step 400: and performing feature matching on the program running features according to the first matching rule information.
Step 500: and when the matching is successful, obtaining a first execution instruction, wherein the first execution instruction is used for carrying out corresponding operation on the log of the program according to the first matching rule information.
Specifically, whether the running characteristics of the program are matched with the matching rules corresponding to the type of the program or not is judged, the program is normally executed if the running characteristics of the program are not matched, if the matching is successful, corresponding operation is performed according to the contents in the matching rule information, for example, the log level of an execution thread is adjusted to an expected level, or corresponding printing is performed as required if the specified printing rule is matched, or when a certain running error occurs in the program of a specified type, the field characteristics are output, the running log of the program is printed, so that the position and the characteristics of the error field are output, the fault reason can be conveniently analyzed and positioned by developers, all programs or the running log in the whole running period does not need to be restored and printed, the system output is greatly reduced, and the system overhead is saved. The method and the device for dynamically adjusting the log level of the running system by using the matching rules realize the purpose-oriented log printing by using the matching rules, have flexible configuration, realize the refined and visualized management of the application log, and can greatly save the technical effect of starting all logs on the system overhead, thereby solving the technical problem that the log level can not be dynamically adjusted according to transaction dimensions and transaction service characteristics in the prior art.
Further, before performing feature matching on the program runtime feature according to the first matching rule information, an embodiment of the present application includes:
step 610: acquiring an operation range according to the first matching rule information;
step 620: and loading the first matching rule information to a corresponding storage space for management according to the operation range.
Specifically, a program type may establish a plurality of matching rules, and when the system is started, the predefined matching rules of the program type may be loaded into a local memory or other storage (e.g., database, Redis) for management according to a rule running range, such as local and cluster. And when the system runs, inquiring and acquiring the corresponding matching rule from the storage space according to the program type.
Further, the embodiment of the present application further includes:
step 710: acquiring system layering information, and arranging a log entrance guard on each layer, wherein the log entrance guard can control the operation of the matching rule information;
step 720: obtaining approach data;
step 730: carrying out data matching on the approach data according to the matching rule information;
step 740: and when the matching is successful, obtaining a second execution instruction, wherein the second execution instruction is used for adjusting the corresponding thread-level log level to an expected level at each layered entrance and recovering the thread-level log level at the exit.
Specifically, according to the layering condition of the application system, log guards can be set in all layers, the portal stores the approach data in the context, once the matching rules are defined and started, the approach data need to be matched through the rules of the guards, the corresponding thread-level log level is adjusted at the entrance of each layer according to the matching result, and the corresponding thread-level log level is restored at the exit.
Further, the log entrance guard has an alarm interface, and the alarm interface is connected with the alarm control center, and this application embodiment includes:
step 810: acquiring a program abnormal event;
step 820: acquiring first alarm information according to the program abnormal event, wherein the first alarm information is used for reporting the program abnormal position and the approach data to the alarm control center through the alarm interface connection and storing the program abnormal position and the approach data in an alarm record;
step 830: analyzing the alarm record through the alarm control center to obtain a first data characteristic value;
step 840: sending the first data characteristic value to the log gatekeeper for characteristic value updating, and obtaining a second matching rule according to the first data characteristic value;
step 850: and according to the second matching rule, obtaining a third execution instruction, wherein the third execution instruction is used for automatically adjusting the corresponding log level to an expected log level when the first data characteristic value is matched.
Specifically, each level of entrance guard is responsible for registration management by a global entrance guard manager, and the entrance guard manager also provides a full stack alarm interface. The entrance guard provides an alarm interface, and once an error (abnormal) event of a designated program occurs, the entrance guard sends error position and entrance data to a centralized alarm control center, the alarm control center is used for recording and analyzing alarm data, the alarm control center automatically analyzes historical alarm data on line, characteristic values (such as a request from a specific client, a specific transaction code, a specific client number and the like) are extracted from the historical alarm data, and the characteristic values are sent back to the log entrance guard to serve as a matching rule of the entrance guard, namely a second matching rule. The gatekeeper, when matching the characteristic value, then automatically adjusts the corresponding transaction log level to the desired log level.
Further, the log guards share an external configurable feature matcher in the same grade, and the log guards call the feature matcher in sequence, and the embodiment of the application includes:
step 910: obtaining the approach data;
step 920: the characteristic matcher performs characteristic extraction on the approach data to obtain a second data characteristic value;
step 930: matching the characteristic values according to the second data characteristic values and the second matching rules;
step 940: and when the second data characteristic value meets the second matching rule, obtaining a fourth execution instruction, wherein the fourth execution instruction is used for modifying the related log level into an expected log level according to the matching result.
Further, the embodiment of the present application includes:
step 1010: obtaining preset matching times;
step 1020: and when the times of successful matching between the data specific value and the matching rule reach the preset matching times, obtaining a first logout instruction, wherein the first logout instruction is used for automatically logging out the characteristic matcher.
Specifically, the guards of the same level share a set of externally settable feature matchers, the guards call the interfaces of the feature matchers configured for the level in sequence, the feature matchers extract feature values according to the approach data, and when the features are matched, the relevant log level (such as the Debug level) is modified into the expected log level. The characteristic matcher can be set by an operation manager by a command or automatically set by an alarm condition analysis/control center. No matter the characteristic matcher is automatically set by the alarm condition analysis/control center or set by an operation manager by a command, when the characteristic value is matched again (the characteristic log is captured) for a specified number of times, the characteristic matcher automatically logs out to avoid printing too many logs.
Further, the embodiment of the present application includes:
step 1110: obtaining the state of the log entrance guard;
step 1120: when the state of the log entrance guard is enabled, judging whether the current program type enables the log entrance guard;
step 1130: when the current program type enables the log entrance guard, obtaining a first matching instruction, wherein the first matching instruction is used for matching the matching rule in the system according to the current program type;
step 1140: obtaining a third matching rule according to the first matching instruction, wherein the third matching rule is all matching rules before operation corresponding to the current program type;
step 1150: performing feature matching on the features of the program in operation according to the third matching rule to obtain a third matching result;
step 1160: when the third matching result is that matching is successful, obtaining a fifth execution instruction, wherein the fifth execution instruction is used for adjusting the log level of the current program execution thread to be a waiting level, and caching the logs which meet the expected level and do not meet the global default log level when the program runs in a memory;
step 1170: when the third matching result is not matched, a sixth execution instruction is obtained, and the sixth execution instruction is used for judging whether the characteristics of the program operation result are matched with the matching rule after the current program is operated or not after the current program is operated;
step 1180: obtaining a fourth matching result according to the sixth execution instruction;
step 1190: obtaining a seventh execution instruction according to the fourth matching result, wherein the seventh execution instruction is a cache log of a printing program when the fourth matching result is that matching is successful; and when the fourth matching result is not matched, emptying the cache log of the current program.
Further, step 1160 of the present embodiment: when the third matching result is that the matching is successful, after obtaining a fifth execution instruction, the method includes:
step 1200: executing the sixth execution instruction before the current program operation is finished;
step 1210: and obtaining a first recovery instruction according to the sixth execution instruction, wherein the first recovery instruction is used for recovering the current program execution thread to the original log level after the sixth execution instruction is completed.
Specifically, the log gatekeeper processing flow at the time of operation is roughly as follows: step 1: checking whether a log gatekeeper is globally enabled; step 2: checking whether a current program type enables a log gatekeeper; and step 3: inquiring matching rules in the local and remote systems of the current program type, judging whether the running characteristics of the program match all the matching rules before running corresponding to the program type, if not, executing the program normally, and executing the step 6 before the execution is finished; in the matching, skipping to the step 4; and 4, step 4: adjusting the log level of the execution thread to a desired level; and 5: caching the logs which meet the expected level and do not meet the global default log level in the memory when the program runs; step 6: after the program is run, judging whether the running result characteristics are matched with all the run-after matching rules of the program type, if not, emptying the cache log of the program; matching can be carried out, a log gatekeeper is matched and started in step 3, a cache log of a program is printed, otherwise, an alarm interface is called, and a characteristic matcher of the current transaction type is automatically set. And 7: the original log level of the executing thread is restored.
Further, a usage scenario of the embodiment of the present application is illustrated: the error program outputs debug log: if the program matching rule is: "transaction code: { rule: AAQRABL, program match before run: yes, username: { rule: all, matching before program run: yes, error code: { rule: SCRC807, program match before run: no, upper limit of printing times: 2, number of printed times: 0. at the running time, the log level of the execution thread can be adjusted by the log gatekeeper only by the program with the transaction code of AAQRABL; when the program execution is finished, the cache log can be output only when the execution is abnormal and the error code is the SCRC807, and the printed times of the matching rule are updated to be 1; and finally, closing the use of the matching rules through a log gatekeeper. When the number of times of printing is increased to 2 and the 3 rd time program with the same running characteristic appears, the log entrance will not adjust the log level any more. The on-site characteristics can be completely output through the regular fault program, and convenience is provided for developers to locate fault reasons.
Other common matching rule use scenarios provided by the embodiment of the application are as follows:
1. printing a slow transaction trigger debug log at most once every 1 hour per transaction;
2. printing debug logs of the programs once every 6 hours by all the programs;
in addition, the embodiment of the application also provides support for management of the matching rule at the running time.
The matching rule management tool provides the following key interface design:
and (3) enableRule, namely setting the switch mark of the matching rule to true.
disableRule (matching rule): the switch flag of the matching rule is set to false.
And when the rule is matched at the running time, if the switch mark of the matched rule is false, the matching is failed.
addRule add matching rule in local or remote system.
deleteRule (matching rule): the matching rules registered in the local or remote system are cleared.
switchOn (program type): and closing the matching rule corresponding to the program type.
switchOff (program type): and opening the matching rule corresponding to the program type.
And at the running time, managing the switch marks of the program types through the map, and when the rule is matched, if the switch marks of the program types corresponding to the running programs are closed, failing to match.
In summary, the core idea of the embodiment of the present application is to make a set of matching rules for the program type and the state characteristics of the program in advance, and then dynamically adjust the log level and print the log with pertinence for the program meeting the matching rules when the system is running.
In order to realize the matching rules, the program type, the matching rules, the log entrance guard and the characteristic correlation design during the program operation are provided. Based on the matching rule, the application log level of the running state system is dynamically adjusted, the log is printed in a targeted manner, the application log is flexibly configured, the application log is managed in a refined and imaging manner, and the overhead of starting all the logs on the system is greatly saved. The design concept of the invention is not limited by programming language and logging tools. The method has the following technical effects:
1. the log printing at the running time of the registered program is supported to be dynamically recovered, if the running log of the program is printed only when a certain type of running error occurs in the program of the specified type, the field characteristic is output, and the analysis and the positioning of the fault reason are facilitated for developers; and the running logs in all programs or the whole running period do not need to be printed again, so that the IO of the system is greatly reduced.
2. Trigger rules can be set according to business rules, and once the rules are matched, the transaction log level can be dynamically adjusted.
3. The matching rules can be flexibly configured according to the rule running period and the running range, different transaction characteristic items and the self-defined rules.
4. When the system is supported to run, the rules are dynamically adjusted and take effect on line without restarting the process.
Therefore, the problem that the log level can not be dynamically adjusted according to the dimension of a certain transaction request in the prior art is solved; the technical problem that the log level can not be automatically and dynamically adjusted according to the configurable business rule is solved.
Example two
Based on the same inventive concept as the log level adjustment and printing method of the running state system in the foregoing embodiment, the present invention further provides a log level adjustment and printing apparatus of the running state system, as shown in fig. 2, the apparatus includes:
a first obtaining unit 11, where the first obtaining unit 11 is configured to obtain a type of a program, where the program is an application program in a running state system;
a second obtaining unit 12, where the second obtaining unit 12 is configured to obtain first matching rule information according to the program type, where the first matching rule information is a rule set that adjusts a log level and/or allows a log to be printed, and the first matching rule information includes a matching rule before running and a matching rule after running;
a third obtaining unit 13, where the third obtaining unit 13 is configured to obtain, when the program runs, a program run-time characteristic, where the program run-time characteristic is a run-time state of an attribute used for rule matching in the program;
a first matching unit 14, where the first matching unit 14 is configured to perform feature matching on the program runtime features according to the first matching rule information;
a fourth obtaining unit 15, where the fourth obtaining unit 15 is configured to, when matching is successful, obtain a first execution instruction, where the first execution instruction is to perform a corresponding operation on a log of a program according to the first matching rule information.
Further, the apparatus further comprises:
a fifth obtaining unit, configured to obtain an operation range according to the first matching rule information;
and the first execution unit is used for loading the first matching rule information to a corresponding storage space for management according to the operating range.
Further, the apparatus further comprises:
a sixth obtaining unit, configured to obtain system hierarchical information, where a log gatekeeper is set in each layer, and the log gatekeeper can control operation of the matching rule information;
a seventh obtaining unit configured to obtain approach data;
the second matching unit is used for carrying out data matching on the approach data according to the matching rule information;
an eighth obtaining unit, configured to, when matching is successful, obtain a second execution instruction, where the second execution instruction is to adjust a corresponding thread-level log level to a desired level at each hierarchical entry, and restore the thread-level log level at an exit.
Further, the apparatus further comprises:
a ninth obtaining unit configured to obtain a program exception event;
a tenth obtaining unit, configured to obtain first alarm information according to the program abnormal event, where the first alarm information is used to send a program abnormal position and approach data to the alarm control center through the alarm interface connection and store the program abnormal position and the approach data in an alarm record;
an eleventh obtaining unit, configured to analyze the alarm record through the alarm control center to obtain a first data characteristic value;
the second execution unit is used for sending the first data characteristic value to the log gatekeeper for characteristic value updating, and acquiring a second matching rule according to the first data characteristic value;
a twelfth obtaining unit, configured to obtain a third execution instruction according to the second matching rule, where the third execution instruction is used to automatically adjust a corresponding log level to an expected log level when the first data feature value is matched.
Further, the apparatus further comprises:
a thirteenth obtaining unit configured to obtain the approach data;
a fourteenth obtaining unit, configured to perform feature extraction on the approach data by using the feature matcher, so as to obtain a second data feature value;
a third matching unit, configured to perform feature value matching according to the second data feature value and the second matching rule;
a fifteenth obtaining unit, configured to obtain a fourth execution instruction when the second data feature value satisfies the second matching rule, where the fourth execution instruction is configured to modify the relevant log level to the expected log level according to the matching result.
Further, the apparatus further comprises:
a sixteenth obtaining unit configured to obtain a predetermined number of times of matching;
a seventeenth obtaining unit, configured to obtain a first logout instruction when the number of times that the matching of the data specific value and the matching rule is successful reaches the predetermined matching number, where the first logout instruction is used to automatically logout the feature matcher.
Further, the apparatus further comprises:
an eighteenth obtaining unit configured to obtain a state of the log gatekeeper;
the first judging unit is used for judging whether the current program type enables the log entrance guard or not when the state of the log entrance guard is enabled;
a nineteenth obtaining unit, configured to obtain a first matching instruction when the current program type enables the journal gatekeeper, where the first matching instruction is used to match the matching rule in the system according to the current program type;
a twentieth obtaining unit, configured to obtain a third matching rule according to the first matching instruction, where the third matching rule is all matching rules before running corresponding to the current program type;
a twenty-first obtaining unit, configured to perform feature matching on the features of the program during running according to the third matching rule, and obtain a third matching result;
a twenty-second obtaining unit, configured to obtain a fifth execution instruction when the third matching result is that matching is successful, where the fifth execution instruction is to adjust a log level of a current program execution thread to a pending level, and cache, in a memory, a log that meets an expected level and does not meet a global default log level when the program runs;
a twenty-third obtaining unit, configured to obtain a sixth execution instruction when the third matching result is not matched, where the sixth execution instruction is to judge whether a program operation result feature is matched with an after-operation matching rule of the current program type after the current program is finished to operate;
a twenty-fourth obtaining unit, configured to obtain a fourth matching result according to the sixth execution instruction;
a twenty-fifth obtaining unit, configured to obtain a seventh execution instruction according to the fourth matching result, where the seventh execution instruction is a cache log of a print program when the fourth matching result is a successful matching; and when the fourth matching result is not matched, emptying the cache log of the current program.
Further, the apparatus further comprises:
a third execution unit, configured to execute the sixth execution instruction before the current program operation is finished;
a twenty-sixth obtaining unit, configured to obtain a first recovery instruction according to the sixth execution instruction, where the first recovery instruction is used to recover the current program execution thread to an original log level after the sixth execution instruction is completed.
Various changes and specific examples of the method for adjusting and printing the log level of the running state system in the first embodiment of fig. 1 are also applicable to the apparatus for adjusting and printing the log level of the running state system in the present embodiment, and through the foregoing detailed description of the method for adjusting and printing the log level of the running state system, those skilled in the art can clearly know the implementation method of the apparatus for adjusting and printing the log level of the running state system in the present embodiment, so for the brevity of the description, detailed descriptions are omitted here.
Exemplary electronic device
The electronic device of the embodiment of the present application is described below with reference to fig. 3.
Fig. 3 illustrates a schematic structural diagram of an electronic device according to an embodiment of the present application.
Based on the inventive concept of the method for adjusting and printing the log level of the running state system in the foregoing embodiment, the present invention further provides a device for adjusting and printing the log level of the running state system, wherein a computer program is stored thereon, and when the program is executed by a processor, the computer program implements the steps of any one of the methods for adjusting and printing the log level of the running state system.
Where in fig. 3 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 306 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other systems over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the embodiment of the application provides a method and a device for adjusting and printing log levels of an operating system, wherein a program type is obtained, and the program is an application program in the operating system; obtaining first matching rule information according to the program type, wherein the first matching rule information is a rule set for adjusting the log level and/or allowing the log to be printed, and the first matching rule information comprises a matching rule before running and a matching rule after running; when a program runs, obtaining a program running characteristic, wherein the program running characteristic is a running state of an attribute used for rule matching in the program; performing feature matching on the features of the program in operation according to the first matching rule information; and when the matching is successful, obtaining a first execution instruction, wherein the first execution instruction is used for carrying out corresponding operation on the log of the program according to the first matching rule information. The method and the device realize dynamic adjustment of the application log level of the running state system by using the matching rule and targeted log printing, have flexible configuration, realize refined and visualized management of the application log, and can greatly save the technical effect of system overhead of opening all logs. Therefore, the technical problem that the log level can not be dynamically adjusted according to transaction dimensions and transaction service characteristics in the prior art is solved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for log level adjustment and printing of a running state system, wherein the method comprises the following steps:
obtaining a program type, wherein the program is an application program in a running state system;
obtaining first matching rule information according to the program type, wherein the first matching rule information is a rule set for adjusting the log level and/or allowing the log to be printed, and the first matching rule information comprises a matching rule before running and a matching rule after running;
when a program runs, obtaining a program running characteristic, wherein the program running characteristic is a running state of an attribute used for rule matching in the program;
performing feature matching on the features of the program in operation according to the first matching rule information;
and when the matching is successful, obtaining a first execution instruction, wherein the first execution instruction is used for carrying out corresponding operation on the log of the program according to the first matching rule information.
2. The method of claim 1, wherein the performing feature matching on the program runtime features according to the first matching rule information comprises:
acquiring an operation range according to the first matching rule information;
and loading the first matching rule information to a corresponding storage space for management according to the operation range.
3. The method of claim 1, wherein the method comprises:
acquiring system layering information, and arranging a log entrance guard on each layer, wherein the log entrance guard can control the operation of the matching rule information;
obtaining approach data;
carrying out data matching on the approach data according to the matching rule information;
and when the matching is successful, obtaining a second execution instruction, wherein the second execution instruction is used for adjusting the corresponding thread-level log level to an expected level at each layered entrance and recovering the thread-level log level at the exit.
4. The method of claim 3, wherein the log gatekeeper has an alarm interface, the alarm interface being connected to an alarm control center, the method comprising:
acquiring a program abnormal event;
acquiring first alarm information according to the program abnormal event, wherein the first alarm information is used for reporting the program abnormal position and the approach data to the alarm control center through the alarm interface connection and storing the program abnormal position and the approach data in an alarm record;
analyzing the alarm record through the alarm control center to obtain a first data characteristic value;
sending the first data characteristic value to the log gatekeeper for characteristic value updating, and obtaining a second matching rule according to the first data characteristic value;
and according to the second matching rule, obtaining a third execution instruction, wherein the third execution instruction is used for automatically adjusting the corresponding log level to an expected log level when the first data characteristic value is matched.
5. The method of claim 4, wherein the log guards share an externally settable feature matcher for the same hierarchy, the log guards invoking the feature matchers in sequence, the method comprising:
obtaining the approach data;
the characteristic matcher performs characteristic extraction on the approach data to obtain a second data characteristic value;
matching the characteristic values according to the second data characteristic values and the second matching rules;
and when the second data characteristic value meets the second matching rule, obtaining a fourth execution instruction, wherein the fourth execution instruction is used for modifying the related log level into an expected log level according to the matching result.
6. The method of claim 5, wherein the method comprises:
obtaining preset matching times;
and when the times of successful matching between the data specific value and the matching rule reach the preset matching times, obtaining a first logout instruction, wherein the first logout instruction is used for automatically logging out the characteristic matcher.
7. The method of claim 5, wherein the method comprises:
obtaining the state of the log entrance guard;
when the state of the log entrance guard is enabled, judging whether the current program type enables the log entrance guard;
when the current program type enables the log entrance guard, obtaining a first matching instruction, wherein the first matching instruction is used for matching the matching rule in the system according to the current program type;
obtaining a third matching rule according to the first matching instruction, wherein the third matching rule is all matching rules before operation corresponding to the current program type;
performing feature matching on the features of the program in operation according to the third matching rule to obtain a third matching result;
when the third matching result is that matching is successful, obtaining a fifth execution instruction, wherein the fifth execution instruction is used for adjusting the log level of the current program execution thread to be a waiting level, and caching the logs which meet the expected level and do not meet the global default log level when the program runs in a memory;
when the third matching result is not matched, a sixth execution instruction is obtained, and the sixth execution instruction is used for judging whether the characteristics of the program operation result are matched with the matching rule after the current program is operated or not after the current program is operated;
obtaining a fourth matching result according to the sixth execution instruction;
obtaining a seventh execution instruction according to the fourth matching result, wherein the seventh execution instruction is a cache log of a printing program when the fourth matching result is that matching is successful; and when the fourth matching result is not matched, emptying the cache log of the current program.
8. The method as claimed in claim 7, wherein said obtaining the fifth execution instruction when the third matching result is a successful matching comprises:
executing the sixth execution instruction before the current program operation is finished;
and obtaining a first recovery instruction according to the sixth execution instruction, wherein the first recovery instruction is used for recovering the current program execution thread to the original log level after the sixth execution instruction is completed.
9. An apparatus for log level adjustment and printing of a runtime system, wherein the apparatus comprises:
the first obtaining unit is used for obtaining a program type, and the program is an application program in a running state system;
a second obtaining unit, configured to obtain first matching rule information according to the program type, where the first matching rule information is a rule set for adjusting a log level and/or allowing a log to be printed, and the first matching rule information includes a matching rule before running and a matching rule after running;
a third obtaining unit, configured to obtain, when a program runs, a program run-time characteristic, where the program run-time characteristic is a run-time state of an attribute for rule matching in the program;
the first matching unit is used for carrying out feature matching on the features of the program in operation according to the first matching rule information;
and the fourth obtaining unit is used for obtaining a first execution instruction when the matching is successful, wherein the first execution instruction is used for carrying out corresponding operation on the log of the program according to the first matching rule information.
10. An apparatus for log level adjustment and printing of a run-time system, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the program.
CN202111512114.0A 2021-12-07 2021-12-07 Method and device for adjusting and printing log level of running state system Pending CN114218180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111512114.0A CN114218180A (en) 2021-12-07 2021-12-07 Method and device for adjusting and printing log level of running state system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111512114.0A CN114218180A (en) 2021-12-07 2021-12-07 Method and device for adjusting and printing log level of running state system

Publications (1)

Publication Number Publication Date
CN114218180A true CN114218180A (en) 2022-03-22

Family

ID=80701049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111512114.0A Pending CN114218180A (en) 2021-12-07 2021-12-07 Method and device for adjusting and printing log level of running state system

Country Status (1)

Country Link
CN (1) CN114218180A (en)

Similar Documents

Publication Publication Date Title
US10949225B2 (en) Automatic detection of user interface elements
US10579453B2 (en) Stream-processing data
JP6452629B2 (en) Parallel execution of continuous event processing (CEP) queries
US20210055995A1 (en) Method and Apparatus for Predicting Errors in To-Be-Developed Software Updates
CN107577579B (en) Log recording method and device
US8656126B2 (en) Managing snapshots of virtual server
US20130185243A1 (en) Alert management system and method
CN110673936B (en) Breakpoint continuous operation method and device for arrangement service, storage medium and electronic equipment
CN111258850B (en) Method and device for updating software information based on Linux system
US20220237057A1 (en) Code consolidation system
WO2016178661A1 (en) Determining idle testing periods
CN110063042A (en) A kind of response method and its terminal of database failure
CN111475401A (en) Test method and related equipment
CN107122203B (en) Configuration file setting method and device
US10001984B2 (en) Identification of software updates using source code execution paths
EP3514680B1 (en) Identification of changes in functional behavior and runtime behavior of a system during maintenance cycles
EP3367241B1 (en) Method, computer program and system for providing a control signal for a software development environment
CN101237350B (en) Global variant exception alteration and positioning method for multi-task environment single board machine
CN111752838A (en) Question checking method and device, server and storage medium
CN114218180A (en) Method and device for adjusting and printing log level of running state system
CN114937316B (en) Software fault detection method, device, equipment and medium
US10735246B2 (en) Monitoring an object to prevent an occurrence of an issue
US20030084071A1 (en) Method and system for managing computer performance
CN113626288A (en) Fault processing method, system, device, storage medium and electronic equipment
CN116149707B (en) Method and device for detecting and avoiding upgrading risk of distributed system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination