分类: LINUX
2008-03-03 22:04:20
The syslog-ng application buffers the log messages to be sent in an output
queue. The sync()
parameter specifies the
number of messages held in this buffer.
# 注释 :syslog-ng 会对要发送的消息先放入缓冲区。sync()参数可以控制放入该缓冲的消息的数量
Note that syslog-ng does not write all buffered messages into a single chunk;
each message is written with a single write()
system call.
# 注释 :syslog-ng 并不会把多个消息一次写入缓冲,而是一次一个
For file destinations, the received messages can be written to disk
immediately after the message is received. To accomplish this, set the sync()
option to zero.
# 注释 :对于文件类型的 destination ,可以直接写入,不需要经过缓冲区。
options { sync(0); };