Purpose of use_syslog

Jon Angliss jon at netdork.net
Fri Jun 5 03:44:31 CEST 2009


On Tue, 2 Jun 2009 09:07:48 -0600, "Steven D. Morrey"
<smorrey at ldschurch.org> wrote:

>Ahhah! I see the error of my ways.
>I just needed to look a bit higher up, basically the write_to_syslog is being called from both logging functions, and the use_syslog option is checked only in the write_to_syslog function as a sort of bail out point.
>That makes sense, but I wanted the option to mean something a little different, so now I've modified the write_to_all_logs and write_to_all_logs_with_timestamp to check for use_syslog and only write out the regular log file if use_syslog is false.
>This way I don't double my logging overhead.  Now use_syslog means use_syslog only :)

This is how I'd expected it to be as well, but not how it actually is.
Application bug? Or documentation bug?  Either way, it's a little
vauge, and could do with clearing up.

-- 
Jonathan Angliss
<jon at netdork.net>


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get




More information about the Developers mailing list