【发布时间】:2011-06-20 22:27:45
【问题描述】:
我想使用 syslog 从远程应用程序进行日志记录。
不过我有一些问题:
例如 RFC 说:
If the originally formed message has a HOSTNAME field, then it
will contain the hostname as it knows itself. If it does not
have a hostname, then it will contain its own IP address.
这是什么意思?
从我的应用程序到日志客户端库的消息,如果它包含一些主机名,那么它将被替换?
可以举个例子吗?
我试过例如:From localhost some data
或From ahost@aa some data
并且这些字符串存储在系统日志服务器中,因为它们由我的应用程序发送到系统日志客户端库。
由于上述要求,它们不应该有所不同吗??
我正在将 log4j 用于 syslog 客户端。
谢谢
【问题讨论】:
标签: linux unix logging log4j syslog