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

Log file management method

A technology for log files and management methods, applied in the field of engineering project development, can solve the problems of low actual utilization of hard disks and occupy storage space, and achieve the effect of improving effectiveness, accuracy and utilization.

Pending Publication Date: 2019-06-14
NANJING UNIV OF POSTS & TELECOMM
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a log file management method to solve the huge difficulty caused by a large amount of messy log information in the prior art when system errors are located. At the same time, these messy information will always accumulate or even Occupies a considerable part of the storage space, making the actual utilization of the hard disk low

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the technical means, creative features, goals and effects achieved by the present invention easy to understand, the present invention will be further described below in conjunction with specific embodiments.

[0024] The method technical scheme includes the following parts:

[0025] (1) Information classification

[0026] When the developed system is in the testing stage, it is necessary to troubleshoot and remove hidden errors, so it is very important to check the system operation log after each test is completed. In order to find information conveniently and locate errors accurately, through the macro definition in C language, the information can be divided into four types, namely ERROR, WARNING, INFO, and DEBUG. Different types of information belong to different levels. The greater the impact of operation, see Table 1 for details.

[0027] Table 1 Information classification

[0028] information type

information level

information ...

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 file management method. The method comprises the steps of dividing the information into four levels according to importance; starting log file management; reading the number of the log files under the current directory and carrying out corresponding processing; reading the sizes of the files one by one to find log files suitable for information writing and storing paths; selecting different output formats according to different levels of the information and opening the file according to the stored path; judging the size of the current file again and carrying out corresponding processing; reading the number of the files in the directory and performing corresponding processing to ensure that the number of the log files does not exceed the maximum number; writingthe information into an opened log file according to a certain format; and closing the file. According to the method, the classification can be carried out according to different types of information, meanwhile, the maximum number allowed by the log files can be manually set, and therefore the log files reach a dynamic balance, and the error correction efficiency of developers and the actual utilization rate of hard disk space are greatly improved.

Description

technical field [0001] The invention belongs to the field of engineering project development, and in particular relates to a log file management method. Background technique: [0002] With the improvement of the national economy and social informatization level, the growth rate of demand for software industry products and services in various industries has reached an unprecedented level. The software development industry is full of every corner of life, such as the bus check-in system, many equipment in the hospital, mobile phone applications, etc. Almost everything we can see is related to software. As hardware continues to upgrade and new technologies are adopted, the latest technical programming trends will bring wider functionality and increase the speed of software deployment. Improved efficiency, user-friendly interfaces, and customization are some of the factors driving changes in these programming technologies. However, a complete system needs to be supported by st...

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): G06F16/17G06F16/18
Inventor 桂冠洪盛范山岗顾浩刘凡赵东旭周子琦
Owner NANJING UNIV OF POSTS & TELECOMM
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