| Summary: | Changing the log output level value makes no difference | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Dan <WJ7du3jk> |
| Component: | Standard Compliance | Assignee: | unassigned |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P3 | ||
| Version: | 1.18.x | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Dan
2011-05-25 21:43:56 UTC
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... |