Syslog/Eventlog functions for logging services.  
 More...
#include <log_builtins_imp.h>
Syslog/Eventlog functions for logging services. 
 
◆ close()
Wrapper for mysys' my_closelog. 
Closes/de-registers the system logging handle.
- Return values
 - 
  
    | LOG_SERVICE_SUCCESS | Success  | 
    | otherwise | Error  | 
  
   
 
 
◆ open()
  
  
      
        
          | log_service_error log_builtins_syseventlog_imp::open  | 
          ( | 
          const char *  | 
          name,  | 
         
        
           | 
           | 
          int  | 
          option,  | 
         
        
           | 
           | 
          int  | 
          facility  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticnoexcept   | 
  
 
Wrapper for mysys' my_openlog. 
Opens/Registers a new handle for system logging. Note: It's a thread-unsafe function. It should either be invoked from the main thread or some extra thread safety measures need to be taken.
- Parameters
 - 
  
    | name | Name of the event source / syslog ident.  | 
    | option | MY_SYSLOG_PIDS to log PID with each message.  | 
    | facility | Type of program. Passed to openlog(). | 
  
   
- Return values
 - 
  
    | LOG_SERVICE_SUCCESS | Success  | 
    | LOG_SERVICE_NOT_AVAILABLE | Error, log not opened  | 
    | LOG_ERROR_NOTHING_DONE | Error, not updated, using previous values  | 
  
   
 
 
◆ write()
Wrapper for mysys' my_syslog. 
Sends message to the system logger. On Windows, the specified message is internally converted to UCS-2 encoding, while on other platforms, no conversion takes place and the string is passed to the syslog API as it is.
- Parameters
 - 
  
    | level | Log level  | 
    | msg | Message to be logged | 
  
   
- Return values
 - 
  
    | LOG_SERVICE_SUCCESS | Success  | 
    | otherwise | Error, nothing logged  | 
  
   
 
 
The documentation for this class was generated from the following files: