Re: syslog(3) inconsistency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Am 23.03.2017 19:37, schrieb Ian Abbott:
> Hi,
> 
> The first parameter of `syslog()` is called `priority` in the man-page,
> except in the breakdown of the possible log levels, where it is called
> `level`.
> 
Hi Ia,
do you thing that this example would be helpful ?

re,
 wh

#include <syslog.h>

int main()
{
	openlog("prgname",LOG_PERROR|LOG_NDELAY,LOG_LOCAL0);
	syslog(LOG_LOCAL0|LOG_DEBUG,"hello error");
	closelog();

	return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux