diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-01-11 11:02:46 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-19 11:34:09 +0000 |
commit | 42f0d50fa31b0045631b93962af3446d5f5e9702 (patch) | |
tree | 06d68fa3bdfd77a2dc960eeaf790556df7538fa6 /meta | |
parent | 030bdde04ae8790b96021cbb7d12bc1049df096c (diff) | |
download | poky-42f0d50fa31b0045631b93962af3446d5f5e9702.tar.gz |
busybox: enable log level configuration in syslog-startup.conf and script
It's possible to configure busybox syslog to only log messages above a
certain level, expose this functionality through the syslog-startup.conf
and syslog init script.
Valid values are 1-8 inclusive.
(From OE-Core rev: 921dfd1a2bc6ad2867da13d2b669288f9788a088)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/busybox/files/syslog | 3 | ||||
-rw-r--r-- | meta/recipes-core/busybox/files/syslog-startup.conf | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/files/syslog b/meta/recipes-core/busybox/files/syslog index 0be412bbeb..deeea8ba65 100644 --- a/meta/recipes-core/busybox/files/syslog +++ b/meta/recipes-core/busybox/files/syslog | |||
@@ -40,6 +40,9 @@ if [ -f /etc/syslog-startup.conf ]; then | |||
40 | if [ "$REDUCE" = "yes" ]; then | 40 | if [ "$REDUCE" = "yes" ]; then |
41 | SYSLOG_ARGS="$SYSLOG_ARGS -S" | 41 | SYSLOG_ARGS="$SYSLOG_ARGS -S" |
42 | fi | 42 | fi |
43 | if [ -n "$LOGLEVEL" ]; then | ||
44 | SYSLOG_ARGS="$SYSLOG_ARGS -l $LOGLEVEL" | ||
45 | fi | ||
43 | else | 46 | else |
44 | # default: log to 16K shm circular buffer | 47 | # default: log to 16K shm circular buffer |
45 | SYSLOG_ARGS="-C" | 48 | SYSLOG_ARGS="-C" |
diff --git a/meta/recipes-core/busybox/files/syslog-startup.conf b/meta/recipes-core/busybox/files/syslog-startup.conf index f58cbe575e..83b86f2293 100644 --- a/meta/recipes-core/busybox/files/syslog-startup.conf +++ b/meta/recipes-core/busybox/files/syslog-startup.conf | |||
@@ -9,3 +9,4 @@ REDUCE=no # reduce-size logging | |||
9 | #ROTATEGENS=3 # keep X generations of rotated logs | 9 | #ROTATEGENS=3 # keep X generations of rotated logs |
10 | BUFFERSIZE=64 # size of circular buffer [kByte] | 10 | BUFFERSIZE=64 # size of circular buffer [kByte] |
11 | FOREGROUND=no # run in foreground (don't use!) | 11 | FOREGROUND=no # run in foreground (don't use!) |
12 | #LOGLEVEL=5 # local log level (between 1 and 8) | ||