System log storage method and device

The invention provides a system log storage method and device. The method comprises the following steps: storing a system log into a dynamic storage area; judging whether the system log meets a preset condition or not; if the system log meets a transfer condition, the system log is transferred from...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: PU JUNLIN, YANG MING, YIN MIN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a system log storage method and device. The method comprises the following steps: storing a system log into a dynamic storage area; judging whether the system log meets a preset condition or not; if the system log meets a transfer condition, the system log is transferred from the dynamic storage area to a persistent storage area, and the transfer condition comprises at least one of the following items: a configured event occurs, a keyword screening condition is met, and log information of a log level specified by the persistent storage area appears in the system log. Log storage records are dynamically adjusted according to log content (such as error information) and the like, the overall log size is controllable, and meanwhile it can be ensured that important events have detailed record information. 本申请提供了一种系统日志的存储方法和装置。所述方法包括将系统日志存入动态存储区;判断所述系统日志是否符合预设条件;若所述系统日志符合转存条件,将所述系统日志从所述动态存储区转存至持久存储区,其中,所述转存条件包括以下中的至少一项:发生配置的事件、符合关键字筛选条件、所述系统日志中出现所述持久化存储区指定的日志等级的日志信息。根据日志内容(如报错信息)等动态调整日志存储记录,实