Method for recording logs with file by flexibly planning catalog
A file recording and logging technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as difficulty in recording logs and slow recording speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0016] see figure 1 , the main steps of the present invention are as follows:
[0017] Step 1: The application configures the directory where the logs are stored through the configuration file.
[0018] Step 2: The log manager reads the log directory configured in the application configuration file. If there is no such directory, it will be established.
[0019] Step 3: The application initiates a log recording request to the log manager.
[0020] Step 4: The application program generates a subdirectory in the format of "year-month-day" according to the current time, and establishes the subdirectory.
[0021] Step 5: Create a log file with a serial number starting from 1 as the file name and "txt" as the extension.
[0022] Step 6: The log manager writes the file to the log.
[0023] Step 7: When recording again, the log manager will check whether the log file has reached the configured length. If it has reached the configured length, a second file will be created, with 2,...
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