title: How to setup syslog in yocto?
body: <p>I like to configure syslog. It seems that are more than one way to set up syslog. I am asking for the common way/steps to do that.</p>
  
  <p>I have several use cases. To simplify I like to ask how to configure syslog to write an infinity long log file in /var/log/.</p>
  
  <p>Following steps:</p>
  
  <p>1.) configure what messages</p>
  
  <p>1.1) create own "syslog.conf" (define /var/log/myLog)</p>
  
  <p>1.2) append it to "recipes-core/busybox"</p>
  
  <p>2.) configure how to log</p>
  
  <p>??</p>
  
  <p>I found two possible places to do that:</p>
  
  <p>@meta-poky
  -> "meta-poky/recipes-core/busybox/busybox/poky-tiny/defconfig"</p>
  
  <pre><code>#
  # System Logging Utilities
  #
  CONFIG_SYSLOGD=y
  CONFIG_FEATURE_ROTATE_LOGFILE=y
  CONFIG_FEATURE_REMOTE_LOG=y
  CONFIG_FEATURE_SYSLOGD_DUP=y
  CONFIG_FEATURE_SYSLOGD_CFG=y
  CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256
  CONFIG_FEATURE_IPC_SYSLOG=y
  CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16
  CONFIG_LOGREAD=y
  CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y
  CONFIG_KLOGD=y
  CONFIG_FEATURE_KLOGD_KLOGCTL=y
  CONFIG_LOGGER=y
  </code></pre>
  
  <p>add/change:</p>
  
  <pre><code>"CONFIG_FEATURE_ROTATE_LOGFILE=n" by adding that line to meta-mylayer/conf/layer.conf"
  </code></pre>
  
  <p>etc.</p>
  
  <p>???</p>
  
  <p>@ "/etc/syslog-startup.conf"</p>
  
  <pre><code># This configuration file is used by the busybox syslog init script,
  # /etc/init.d/syslog[.busybox] to set syslog configuration at start time.
  
  DESTINATION=file        # log destinations (buffer file remote)
  LOGFILE=/var/log/messages   # where to log (file)
  REMOTE=loghost:514      # where to log (syslog remote)
  REDUCE=no           # reduce-size logging
  DROPDUPLICATES=no       # whether to drop duplicate log entries
  #ROTATESIZE=0           # rotate log if grown beyond X [kByte]
  #ROTATEGENS=3           # keep X generations of rotated logs
  BUFFERSIZE=64           # size of circular buffer [kByte]
  FOREGROUND=no           # run in foreground (don't use!)
  #LOGLEVEL=5         # local log level (between 1 and 8)
  </code></pre>
  
  <p>In the systemV init script "/etc/init.d/syslog.bussybox" the file "/etc/syslog-startup.con" is read and used for configuration.</p>
  
  <p>System behaviour:</p>
  
  <p>When running my system, the log wraps when the logfile reaches 200kBytes. One logfile + one log-rotate file is generated.</p>
  
  <p>Any ideas how to archive that syslog writes an infinite long log-file? </p>
  
  <p>I am working on the Yocto krogoth branch + meta-atmel / meta_openembedded (@ krogoth too).</p>