A method of decoupling program and log
A log and program technology, applied in the field of software program and log decoupling, can solve problems such as large method limitations, complex configuration files, unfriendly developers, etc., to achieve the effect of good adaptability and practicability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach
[0025]Such asfigure 1As shown, the specific embodiments of the present invention are as follows:
[0026]Step 1, encapsulate the logging logic into a function interface, and design two incoming parameters, parameter one is function name funcname, parameter 2 is a set paramList;
[0027]Step 2, rewrite the function name error handling mechanism, for the function that requires the logging running log, the function name identification to ensure that the programming rule is not conflict with the programming language itself, can increase the prefix in the name Increase the suffix or otherwise. For example, the prefix can be the underline "_", can be a plus "+", or even if the programming language allows, it can be an asterisk "*", or it can be a word, such as "log", but must ensure that the programming rule does not conflict ;
[0028]Step 3, the program master logic corrects the function, when calling, the function name does not have an identity. For example, using the underscore "_" prefix tag ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
