Log management method and terminal
A management method and technology for managing terminals, applied in the field of log management methods and terminals, can solve problems such as maintenance costs, impact on system service life, downtime, etc., to facilitate management operations, facilitate expansion and development, and avoid mutual influence.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] Please refer to figure 1 , Embodiment 1 of the present invention is:
[0083] A log management method, specifically comprising:
[0084] S1. Setting a corresponding configuration file for each application program;
[0085] The configuration file includes log storage path, day category, log level, log folder size threshold, log folder file number threshold and single log file maximum line number;
[0086] Among them, the log file name is composed of log category and creation time;
[0087] Log categories include can bus logs, task logs, tracking algorithm logs, etc.;
[0088] The log levels are DEBUG, INFO, WARNING, and ERROR, and the levels increase in this order. The higher the level, the higher the importance;
[0089] Preferably, when using the application program test version, the log level can be set to DEBUG, which is convenient for viewing all logs and then performing various debugging on the application program. When the application program version is stable...
Embodiment 2
[0104] Please refer to image 3 , Figure 4 , Figure 5 and Figure 6 , the second embodiment of the present invention is:
[0105] A log management method, which differs from Embodiment 1 in that said S3 includes:
[0106] S31, please refer to image 3 , read the log storage path in the configuration file, judge whether there is a log folder according to the log storage path, if not, create a log folder, complete the initialization of the log folder, and execute S32, otherwise, execute S32;
[0107] If the creation of the log storage path fails, a response prompt will pop up and the operation will end;
[0108] S32. Please refer to Figure 4 , read the log category in the configuration file, and obtain the current time, determine the log file name according to the log category and the current time, and create a log corresponding to the log file name in the log folder file, and write the log in the log file through the log writing interface;
[0109] Preferably, a defa...
Embodiment 3
[0120] Please refer to figure 2 , Embodiment three of the present invention is:
[0121] A log management terminal 1, the terminal 1 includes a processor 2, a memory 3, and a computer program stored on the memory 3 and operable on the processor 2, when the processor 2 executes the computer program, it realizes Each step in Embodiment 1 or Embodiment 2.
[0122] To sum up, the present invention provides a log management method and terminal. By setting a corresponding configuration file for each application program, the application program logs are managed uniformly. When the log is written, the corresponding log type is determined. Configuration file, write the log into the log file according to the configuration file, so that the logs of different applications can be integrated and managed, and it is convenient to search and view the log file; set the specific log storage path and the naming method of the log file in the configuration file , to facilitate the search of log ...
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