Log storage method and device, electronic equipment and storage medium
The embodiment of the invention provides a log storage method and device, electronic equipment and a storage medium, and the method comprises the steps: generating log information; obtaining the state of a formal cache region; performing counting operation according to the state of the formal cache...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention provides a log storage method and device, electronic equipment and a storage medium, and the method comprises the steps: generating log information; obtaining the state of a formal cache region; performing counting operation according to the state of the formal cache region and the log information to obtain counted log information; and storing the counted log information into a database. By implementing the embodiment of the invention, the log storage pressure can be relieved, the probability of log storage failure is reduced, the defects of repeatedly reading the log information and frequently producing the log information are reduced, the log storage efficiency is improved, and the storage time is shortened.
本申请实施例提供一种日志存储方法、装置、电子设备及存储介质,其中,该方法包括:生成日志信息;获取正式缓存区的状态;根据所述正式缓存区的状态和所述日志信息进行计数操作,获得计数后的日志信息;将所述计数后的日志信息存入数据库。实施本申请实施例,可以缓解日志入库的压力,减少日志入库失败的概率,减少重复性读取日志信息和频繁生产日志信息的弊端,提高日志的存储效率,缩短入库时间。 |
---|