not work syslog from application

Brilliantov Kirill Vladimirovich brilliantov at byterg.ru
Fri Jul 4 12:39:16 UTC 2014


Hello!
I use Busybox v1.22.1 on our board with ARM CPU.
Unfortunately in this version I have very strange - syslog output not 
work from application.

~ # /tmp/a.out
~ #

If I run syslogd and run application:
~ # syslogd -n
Jan  1 00:15:30 (none) syslog.info syslogd started: BusyBox v1.22.1
~ # /tmp/a.out // run from another terminal
Jan  1 00:15:47 (none) user.info test: main:7

Test application:
#include <stdio.h>
#include <syslog.h>

int main(int argc, char *argv[])
{
	openlog("test", LOG_CONS, LOG_USER);
	syslog(LOG_INFO, "%s:%u", __func__, __LINE__);

	return 0;
}

How can I solve this problem?
Thank you and excuse me for my bad english.

-- 
Best regards,
Brilliantov Kirill Vladimirovich



More information about the busybox mailing list