diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-02 22:09:41 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-02 22:09:41 +0100 |
commit | b81e8963158e3b20e2ef1273227cf6645b846f6d (patch) | |
tree | 0d408298ce730a8b58c8fca17f6dcfd8e959c543 /include | |
parent | c90b3de6b33722375d61c111ca7e26998534b147 (diff) | |
download | wolfbones-b81e8963158e3b20e2ef1273227cf6645b846f6d.tar.gz wolfbones-b81e8963158e3b20e2ef1273227cf6645b846f6d.tar.bz2 |
added computer and source to event log logging
Diffstat (limited to 'include')
-rw-r--r-- | include/wolf/log.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/wolf/log.h b/include/wolf/log.h index 9a6d396..1a81083 100644 --- a/include/wolf/log.h +++ b/include/wolf/log.h @@ -202,11 +202,15 @@ void wolf_log_openlogtosyslog( const char *ident, /** * Open a channel to the Windows event logger. * + * @param server name of the server to log to, NULL if local computer + * @param source name of the event log source * @param level one out of wolf_log_level_t, the minimal level which * should be logged into the event log * */ -void wolf_log_openlogtoeventlog( wolf_log_level_t level ); +void wolf_log_openlogtoeventlog( const char *server, + const char *source, + wolf_log_level_t level ); #endif /* defined HAVE_EVENTLOG */ /** @@ -254,6 +258,13 @@ void wolf_log_reopenlogtofile( void ); void wolf_log_reopenlogtosyslog( void ); #endif /* defined HAVE_SYSLOG_H */ +#if defined HAVE_EVENTLOG +/** + * Reopen logging to the Windows event logger. + */ +void wolf_log_reopenlogtoeventlog( void ); +#endif /* defined HAVE_EVENTLOG */ + /** * Write a formatted log message to the logger. * |