> -----Original Message-----
> From: Brilliantov Kirill Vladimirovich [mailto:[email protected]] 
> Sent: 04 July 2014 13:39
> To: [email protected]
> Subject: not work syslog from application
>
> 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

Does "logger test" work?
Is "/var/log/syslog" writable?
Try using a circular buffer instead "syslogd -C1024". This works for me. Read 
using "logread|tail" instead.

S.


_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to