Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::logging::system_logging_option_list Enumeration
C++
enum system_logging_option_list {
  SYSLOG_OPT_OPENAPPEND,
  SYSLOG_OPT_OPEN_BACKUP,
  SYSLOG_OPT_LOG_PROGRAM_NAME,
  SYSLOG_OPT_LOG_THREAD_ID,
  SYSLOG_OPT_LOG_SOURCE_FILE,
  SYSLOG_OPT_MAX
};
Members 
Description 
SYSLOG_OPT_OPENAPPEND 
the file, when opened, will be opened for append. 
SYSLOG_OPT_OPEN_BACKUP 
the file, if it exists, will be renamed automatically. 
SYSLOG_OPT_LOG_PROGRAM_NAME 
enable logging the program executable (probably the same for all messages, unless they are network) 
SYSLOG_OPT_LOG_THREAD_ID 
enables logging the unique process and thread ID. 
SYSLOG_OPT_LOG_SOURCE_FILE 
enable logging source file information. See DBG_PASS 
SYSLOG_OPT_MAX 
used for declaring a flagset to pass to setoptions. 

When setting options using SetSyslogOptions() these are the defines for the bits passed. 

SYSLOG_OPT_OPENAPPEND - the file, when opened, will be opened for append. 

SYSLOG_OPT_OPEN_BACKUP - the file, if it exists, will be renamed automatically. 

SYSLOG_OPT_LOG_PROGRAM_NAME - enable logging the program executable (probably the same for all messages, unless they are network) 

SYSLOG_OPT_LOG_THREAD_ID - enables logging the unique process and thread ID. 

SYSLOG_OPT_LOG_SOURCE_FILE - enable logging source file information. See DBG_PASS 

SYSLOG_OPT_MAX - used for declaring a flagset to pass to setoptions.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!