• Iustin Pop's avatar
    Add capability to use syslog for logging · 551b6283
    Iustin Pop authored
    This patch adds a configure-time parameter that will set the defaults
    used by all programs, and command-line parameters in the daemons that
    allow overriding it.
    Syslog 'yes' enables syslog in addition to file-based logging, 'only'
    enables syslog and disables file-based syslog.
    The log entries will be of the form:
    Jan 27 08:45:04 node2 ganeti-noded[14504]: INFO PUT
    /jobqueue_update HTTP/1.0 200
    Jan 27 08:45:05 node2 ganeti-noded[14505]: INFO PUT
    /lv_list HTTP/1.0 200
    and (for a multi-threaded program):
    Jan 27 08:51:48 node1 ganeti-masterd[15491]: (MainThread) INFO
    ganeti-masterd daemon startup
    Jan 27 08:51:49 node1 ganeti-masterd[15491]: (MainThread) INFO
    Inspecting job queue
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>