Log processing method and device, equipment and medium
The invention discloses a log processing method and device, equipment and a medium, and is used for solving the problems that in the prior art, a log file processing mode is not beneficial to management, confidentiality is not easy to achieve, and the system resource occupancy rate is too high. The...
Saved in:
Main Authors | , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
22.12.2023
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a log processing method and device, equipment and a medium, and is used for solving the problems that in the prior art, a log file processing mode is not beneficial to management, confidentiality is not easy to achieve, and the system resource occupancy rate is too high. The method comprises the steps that log data used for generating log information is obtained through a log interface; recording the log data into a log file, generating log information, and obtaining the generation time of the log information in the process of recording the log data; and when the system time meets a preset time condition, recording the file line number of the log information and generating time information.
本发明公开了一种日志处理方法、装置、设备与介质,用以解决现有技术中日志文件处理方式不利于管理,造成不易保密、系统资源占用率过高的问题,所述方法包括:通过日志接口,获取用于生成日志信息的日志数据;将所述日志数据记录到日志文件中,生成日志信息,并在记录所述日志数据的过程中,获取所述日志信息的生成时间;在系统时间满足预设时间条件时,记录所述日志信息的文件行号和生成时间信息。 |
---|---|
Bibliography: | Application Number: CN202210668733 |