Log level prediction method and device and storage medium
A prediction method and log technology, applied in the direction of error detection/correction, instrument, software maintenance/management, etc., can solve the problems of reducing development efficiency, missing key information, and information not being stored, so as to improve development efficiency and reduce The effect of decision time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] figure 1 It is a flow chart of a method for predicting a log level in Embodiment 1 of the present invention. This embodiment is applicable to the case of predicting the log level of a log record statement to be inserted, and the method can be executed by a log level prediction device. The means can be realized by means of software and / or hardware, and generally can be integrated in computer equipment. Such as figure 1 As shown, the method of the embodiment of the present invention specifically includes:
[0037] Step 110 , acquiring a code block to be inserted into a log record statement, and the log record statement is used to form a record log after triggering execution.
[0038] In this embodiment, the log record statement is used to record information or handle some errors encountered during system operation, and a record log can be formed after triggering execution. There are 10 types of code blocks to be inserted into logging statements, including: CatchBlock, ...
Embodiment 2
[0067] Figure 2a It is a flow chart of a log level prediction method in Embodiment 2 of the present invention. The embodiments of the present invention may be combined with various optional solutions in the foregoing embodiments. In the embodiment of the present invention, before obtaining the code block to be inserted into the log record statement, it also includes: searching for the log record statement in the training item, and the code block containing the log record statement; according to the preset feature model, the code block and Feature extraction is performed on the files belonging to the code block, and the code block features and file features that match the preset feature model are obtained; the extracted code block features and file features are input into the preset algorithm model for training, and the log level prediction model is obtained .
[0068] Step 210, searching for the log record statement in the training item and the code block containing the log...
Embodiment 3
[0091] image 3 is a schematic structural diagram of a log level prediction device in Embodiment 3 of the present invention. The device can be implemented in the form of software and / or hardware, and generally can be integrated into computer equipment. Such as image 3 As shown, the device includes: a code block acquisition module 310, a feature acquisition module 320, a level determination module 330 and a log statement insertion module 340;
[0092] A code block obtaining module 310, configured to obtain a code block to be inserted into a log record statement, and the log record statement is used to form a record log after triggering execution;
[0093] The feature acquisition module 320 is used to perform feature extraction on the code block and the file to which the code block belongs according to the preset feature model, so as to obtain the code block feature and the file feature;
[0094] The level determination module 330 is used to predict the log level according t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com