<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>717</bug_id>
          
          <creation_ts>2011-02-14 09:15:02 +0000</creation_ts>
          <short_desc>Improve syslog configurability</short_desc>
          <delta_ts>2012-02-08 16:45:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(QA Test Completed)(Done)</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Joshua Lock - Disabled">josh</assigned_to>
          <cc>jiajun.xu</cc>
    
    <cc>josh</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11735</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-02-14 09:15:02 +0000</bug_when>
    <thetext>Currently the default configuration for syslogd is to keep messages in a memory buffer.  These can later be retrieved via the &apos;logread&apos; program.

Since /var/log is set up as a ramdisk (also by default), it&apos;s silly not to just let the messages go there as well.  If one is concerned about memory usage either leave it as &quot;buffer&quot; or enable log rotation.

It would be good if this was more easily configurable.  As is, one has to override this config file using .bbappend.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17039</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-11-01 16:30:58 +0000</bug_when>
    <thetext>I&apos;d say this was important enough to schedule soon, it&apos;s more than a bit frustrating and not - so far as I can see - documented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17165</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-11-09 11:34:47 +0000</bug_when>
    <thetext>My initial thought is to add a variable, perhaps a DISTRO_FEATURE (logging?), which is enabled by default in the Poky distribution to enable this.

I propose we have logging to disk enabled by default, at least in Poky through some mechanism in meta-yocto. Further I&apos;ll document the switch in an appropriate place.

We&apos;ve oft talked about a cookbook for Poky but I&apos;m not sure on the status of that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17167</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-11-09 13:52:40 +0000</bug_when>
    <thetext>Design Sign-off, does this include log-rotation?  Do we need to add a log rotator recipe?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18342</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-01-24 15:35:56 +0000</bug_when>
    <thetext>I&apos;m resolving this as fixed, I&apos;ve had several patches merged to master which switch to logging to a file by default and ensure all of the options available at launch of syslogd are configurable by syslog-startup.conf

busybox: enable dropping of duplicates in syslog, off by default
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3ba7426bbf6be7a708c22d573513a4fd6a3c90d0

busybox: change syslog default to log to a file
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=35d1c6821d0ad6557203336a4440cfd8e1480c7d

busybox: enable log level configuration in syslog-startup.conf and script
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=42f0d50fa31b0045631b93962af3446d5f5e9702

busybox: remove incorrect comments from syslog-startup.conf
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=030bdde04ae8790b96021cbb7d12bc1049df096c

busybox: drop MARKINT option from init script and syslog-startup.conf
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=cbc784f4ebf26e5440104dacb45ccced9ef3d594</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18526</commentid>
    <comment_count>5</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-02-07 06:40:55 +0000</bug_when>
    <thetext>I tested the feature against master with commit cb89d43473a91ff4cb2447d642fcd9308d7366e3, it could work</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>