Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Pending Publication Date: 2020-07-28
江苏盛海智能科技有限公司
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Whether it is an unmanned driving system or other embedded systems, only the system logs are managed systematically, and the management of application logs is relatively scattered, which will cause two major problems. One is that it is not easy to manage the logs. View, retrieve and delete, the second is useless, expired logs will waste storage space, long-term accumulation will cause storage to be exhausted, resulting in abnormal application functions, system crashes or downtime, which will also affect the service life of the system. Make tasks unable to be executed smoothly, affect user experience, and then spend more maintenance costs to maintain the system

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
  • Log management method and terminal
  • Log management method and terminal
  • Log management method and terminal

Examples

Experimental program
Comparison scheme
Effect test

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 ...

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 a log management method and a terminal. The method includes setting a corresponding configuration file for each application program; receiving a log writing request, and determining a configuration file corresponding to the log according to the category of the log; writing the log according to the configuration file; setting the configuration file to restrain log file attributes and log writing; enabling logs generated by different application programs in the embedded system to be managed in a unified manner; meanwhile, determining a corresponding configuration file according to the category of the log, enabling the setting of the configuration file to be more flexible; meanwhile, arranging a unified write-in interface for log write-in operation, guaranteeing that the formats of logs are unified, facilitating searching and reading of log files in the later period, positioning the files by updating log file handles. When new log files need to be written in, the interface does not need to be reset, only the corresponding handles need to be updated, and system resources are saved.

Description

technical field [0001] The invention relates to the field of log management, in particular to a log management method and a terminal. Background technique [0002] Whether it is an unmanned driving system or other embedded systems, only the system logs are managed systematically, and the management of application logs is relatively scattered, which will cause two major problems. One is that it is not easy to manage the logs. View, retrieve and delete, the second is useless, expired logs will waste storage space, long-term accumulation will cause storage to be exhausted, resulting in abnormal application functions, system crashes or downtime, which will also affect the service life of the system. Make the task unable to be executed smoothly, affect the user experience, and then spend more maintenance costs to maintain the system. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a log management method and a termin...

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): G06F11/30
CPCG06F11/3013G06F11/302G06F11/3065G06F11/3093G06F2201/865
Inventor 余平张加法
Owner 江苏盛海智能科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products