首页>
外国专利>
METHOD FOR PROCESSING LOG BASED ON LOGROTATE TECHNOLOGY
METHOD FOR PROCESSING LOG BASED ON LOGROTATE TECHNOLOGY
展开▼
机译:基于loglogate技术的日志处理方法
展开▼
页面导航
摘要
著录项
相似文献
摘要
A method for processing a log based on logrotate technology, comprising the following steps: checking the usage rate of a magnetic disk for storing log data within a preset time period; when the usage rate is within the range of a first preset threshold, searching the magnetic disk for log data with the created date consistent with the date of a clock system as first log data, and using the remaining log data in the magnetic disk as second log data; deleting the second log data; and when the data volume of the first log data is greater than a second preset value, deleting log data of default level from the first log data. The usage rate of the magnetic disk is first checked, and log data is deleted only when the usage rate of the magnetic disk is within the range of the first preset threshold, rather than directly deleting all log data in the magnetic disk is not directly deleted within the preset time period, thereby ensuring the recording function of logs.
展开▼