Log file recording method and device
The invention provides a log file recording method and device. The log file recording method comprises the steps: monitoring whether a connected data relation server is switched or not; when the datarelationship server is switched, obtaining a first storage position identifier of a log event cached...
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 invention provides a log file recording method and device. The log file recording method comprises the steps: monitoring whether a connected data relation server is switched or not; when the datarelationship server is switched, obtaining a first storage position identifier of a log event cached recently before switching, and matching the first storage position identifier with a second storageposition identifier of a historical log file stored in the log file; determining a target storage position where a target historical log file corresponding to the successfully matched second storageposition identifier is located; and determining the first storage position after the target storage position as a connection storage position, and recording a log event of the switched data relationship server by taking the connection storage position as an initial recording position. Therefore, when the data relationship server is switched and reconnected, the connection recording position of thelog file can be accurately |
---|