Method for dynamically outputting log file according to time
A technology for outputting logs and log files, applied in the field of dynamically outputting log files by time, can solve problems such as insufficiency, and achieve the effects of preventing output efficiency from becoming lower, locating paths quickly, and improving retrieval efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] (1) Define file naming rules. The log file name contains time information, and its format is YYYYMMDDHHMM. For example, the format of 1:1 on January 1, 2009 is 200901010101; the prefix and suffix strings in the file name are recorded as PRE and APP respectively; the sequence in the file name The number is denoted as SEQ. Let the file name format be PRE‖YYYYMMDDHHMMSS‖SEQ‖APP, where‖ is a traditional binary string connector;
[0055] (2) Define time granularity. It is assumed that a new log file is created every k minutes, where 01440, this method can be extended;
[0056] (3) Define the file size threshold. Let the log file size threshold be M, where M>0;
[0057] (4) Obtain the file name. First, calculate the time string in the file name based on the current time and the defined time granularity. The specific calculation method is as follows:
[0058] HH = HH C ...
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