Method and device for realizing system journal
暂无分享,去创建一个
The invention provides a system log realizing method and device. The method: it generates log process object entity, log sending object entity and log information writing object entity at a client end and includes the steps as follows: the client-end log process object entity records system log and inserts the log into a client-end log queue; the log sending object entity takes the system log out of the log queue and sends the system log to a server end; the server-end log receiving object entity monitors the connecting request and receives the system log data and inserts the system log into a server-end log queue; the log information writing object entity takes the corresponding system log out of the server-end log queue and records it to the local system log file. The invention can make centralized recording and management on complex distributed system log.