上面的流程整体上提供了一种可靠消息传递机制:一个客户端发送一条日志请求,服务器在完成消息存储之后发送一条确认信息。
The flow described above principally provides a mechanism for reliable messaging: a client sends a logging request and the server sends an acknowledgement once it has persisted the message.
这些规则使您可以很好地调整使用该机制记录的内容 —— 在一台高容量而且工作繁重的服务器上使用 syslog 机制可以转换为可改变大小的日志文件。
These rules enable you to finely tune what can and cannot be logged with the mechanism — which, on a high-volume, hard-working server can translate to log files of a manageable size.
其实并不是这样的;实际上,通过在cron、回复邮件(mailback)服务器,或者类似的作业控制机制(请参见清单3)中进行调用,这项工作完全可以实现自动化。
It's not so, though; this can actually be entirely automated, to the point of being invoked, by cron, a mailback server, or a similar job-control mechanism (see Listing 3).
应用推荐