From a3a16cab90bbf335a466c293621fe3777d59cf10 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 2 Aug 2017 11:01:52 +0200 Subject: [PATCH] busybox-syslog: Enable mem buffer in syslog --- .../busybox-1.24.1/busybox-syslog.default | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 recipes-core/busybox/busybox-1.24.1/busybox-syslog.default diff --git a/recipes-core/busybox/busybox-1.24.1/busybox-syslog.default b/recipes-core/busybox/busybox-1.24.1/busybox-syslog.default new file mode 100644 index 0000000..1307af9 --- /dev/null +++ b/recipes-core/busybox/busybox-1.24.1/busybox-syslog.default @@ -0,0 +1,26 @@ +#OPTIONS="-C" +# The above option means syslogd will log to 16K shm circular buffer. +# You could use `logread' to read it. + +# All available options are: +# -O FILE : Log to FILE (default:/var/log/messages) +# -l N : Log only messages more urgent than prio N (1-8) +# -S : Smaller output +# -s SIZE : Max size (KB) before rotation (default:200KB, 0=off) +# -b N : N rotated logs to keep (default:1, max=99, 0=purge) +# -R HOST[:PORT]: Log to HOST:PORT (default PORT:514) +# -L : Log locally and via network +# -D : Drop duplicates +# -C[size_kb] : Log to shared mem buffer (use logread to read it) +# -f FILE : Use FILE as config (default:/etc/syslog.conf) +# -m MIN : Minutes between mark lines (default:20, 0=off) +# -K : Log to kernel printk buffer (use dmesg to read it) + +# Example 1: +# Log to local file /var/log/mylog +# OPTIONS="-O /var/log/mylog" +# +# Example 2: +# Log to remote host +# OPTIONS="-R 192.168.1.1:601" +OPTIONS="-C64"