Changing the log output level value to anything between 0-7 makes no difference from the debug value 7 in syslog.
Tested "syslogd -l 5": Message generated by "logger -p 5 TEST" is not logged. Message generated by "logger -p 4 TEST" is logged. Seems to work. If it doesn't work for you, describe your exact situation.
I am using OpenWrt (on a Netgear WNDR3700). It uses BusyBox sysklogd unmodified, programs logging there use either the "logger" utility or the "openlog()" and "syslog()" api calls, so nothing OpenWrt specific. If I set the log output level to anything between 0-7, then try it one by one, the log looks like this in each case: May 31 02:14:16 BLACKPORT user.debug root: TEST MSG May 31 02:14:19 BLACKPORT user.info root: TEST MSG May 31 02:14:22 BLACKPORT user.notice root: TEST MSG May 31 02:14:25 BLACKPORT user.warn root: TEST MSG May 31 02:14:28 BLACKPORT user.err root: TEST MSG May 31 02:14:31 BLACKPORT user.crit root: TEST MSG May 31 02:14:34 BLACKPORT user.alert root: TEST MSG May 31 02:14:37 BLACKPORT user.emerg root: TEST MSG
(In reply to comment #2) > I am using OpenWrt (on a Netgear WNDR3700). > It uses BusyBox sysklogd unmodified, What is its version? > programs logging there use either the > "logger" utility or the "openlog()" and "syslog()" api calls, so nothing > OpenWrt specific. > If I set the log output level to anything between 0-7, How exactly do you set it? > then try it one by one, ...by running which command? > the log looks like this in each case: > > May 31 02:14:16 BLACKPORT user.debug root: TEST MSG > May 31 02:14:19 BLACKPORT user.info root: TEST MSG > May 31 02:14:22 BLACKPORT user.notice root: TEST MSG > May 31 02:14:25 BLACKPORT user.warn root: TEST MSG > May 31 02:14:28 BLACKPORT user.err root: TEST MSG > May 31 02:14:31 BLACKPORT user.crit root: TEST MSG > May 31 02:14:34 BLACKPORT user.alert root: TEST MSG > May 31 02:14:37 BLACKPORT user.emerg root: TEST MSG
Works for me...