[BusyBox] The syslog lib call isn't loged by syslogd

Poul Erik Hansen peh at ellab.com
Mon Mar 15 12:00:27 UTC 2004


The syslogd and klogd log messages from kernel and busybox to "/var/log/message", but messages from my user program isn't loged



int main( /*@unused@*/ int argc, char* argv[] )
{
    openlog("status.cgi", LOG_PID | LOG_NOWAIT, LOG_DAEMON);

    syslog(LOG_WARNING, "Start status.cgi");

	printf("\n"
"<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\"> \n"
"<html>\n"
"<head>\n"
"   <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n"
"   <title>Cgi-test page</title>\n"
"   <META HTTP-EQUIV=\"Refresh\" Content=\"%d; URL=/cgi-bin/status.cgi\">\n"
"   <style type=\"text/css\"><!--\n"
"   body {background-color: #ffffff; color: #000000;}\n"
"   table {border-collapse: collapse;}\n"
"   td, th { border: 1px solid #000000; font-size: 75%%; verticald-align: baseline;}\n"
"   .e {background-color: #ccccff; font-weight: bold; color: #000000;}\n"
"   .h {background-color: #9999cc; font-weight: bold; color: #000000;}\n"
"   .v {background-color: #cccccc; color: #000000;}\n"
"   //--></style>\n"
"</head>\n"
"<body>\n"
"Link %s %s <br>\n"
"File %s line %d<br>\n"
 ,		UPDATE_RATE, __DATE__, __TIME__,__FILE__,__LINE__);

    fflush(stdout);

    printf("</body></html>\n" );

    closelog();
    return 0;
}



> best regards  Poul-Erik Hansen
> 
> ---------------------------
> Ellab A/S
> Krondalvej 9
> DK - 2610 Rødovre
> Denmark
> Phone 44 52 05 00
> Direct 44 52 05 94
> Fax 44 53 05 05
> Web www.ellab.com
> E-mail peh at ellab.com
> -------------------------------
> 
> 



More information about the busybox mailing list