w*s 发帖数: 7227 | 1 1. under /etc, there's no syslog.conf
2. created /etc/syslog.conf which has only 1 line,
user.*/var/log/myfolder
3. write a c code which calls syslog()
4. run the above code
5. in /var/log/messages i can see
user.info myprog: hello world
6. nothing in /var/log/myfolder
i'm logining as root.
Any suggestions ? |
x**m 发帖数: 941 | 2 RHEL/CentOS 6.0+ adopted rsyslog. Do you have /etc/rsyslog.conf? |
w*s 发帖数: 7227 | 3 1. under /etc, there's no syslog.conf
2. created /etc/syslog.conf which has only 1 line,
user.*/var/log/myfolder
3. write a c code which calls syslog()
4. run the above code
5. in /var/log/messages i can see
user.info myprog: hello world
6. nothing in /var/log/myfolder
i'm logining as root.
Any suggestions ? |
x**m 发帖数: 941 | 4 RHEL/CentOS 6.0+ adopted rsyslog. Do you have /etc/rsyslog.conf? |
w*s 发帖数: 7227 | 5 no rsyslog, this is pure kernel for embedded system,
only basic stuff and busybox.
咪咪你是好人,现在工作挣钱不容易,真的谢谢了。
【在 x**m 的大作中提到】 : RHEL/CentOS 6.0+ adopted rsyslog. Do you have /etc/rsyslog.conf?
|
u*********r 发帖数: 2735 | 6 check busybox code, syslog may go to udp socket
【在 w*s 的大作中提到】 : no rsyslog, this is pure kernel for embedded system, : only basic stuff and busybox. : 咪咪你是好人,现在工作挣钱不容易,真的谢谢了。
|
x**m 发帖数: 941 | 7 你说的好惨哦,要不送你点伪币?
Can you post the line with syslog() in your C code and the line in /var/log/
messages?
【在 w*s 的大作中提到】 : no rsyslog, this is pure kernel for embedded system, : only basic stuff and busybox. : 咪咪你是好人,现在工作挣钱不容易,真的谢谢了。
|
w*s 发帖数: 7227 | 8 年纪老了,也没有储蓄退休,一身的病痛去上班做奴隶。
你们年轻孩子要多锻炼身体。
log/
【在 x**m 的大作中提到】 : 你说的好惨哦,要不送你点伪币? : Can you post the line with syslog() in your C code and the line in /var/log/ : messages?
|
w*s 发帖数: 7227 | 9 we cannot change busybox code for license issue,
so just live with it ...
【在 u*********r 的大作中提到】 : check busybox code, syslog may go to udp socket
|