![]() |
Nevelex Utilities 1.1.4 09/06/2003 | |
SyslogLogger.h00001
00031 /***************************************************************************
00032 SyslogLogger.h - Logger implementation that
00033 sends logs to the UNIX syslog.
00034 -------------------
00035 Author: Michel Dalal
00036 Date: Sun Sep 15 2002
00037 Copyright: (C) 2002 Nevelex Corporation
00038 ***************************************************************************/
00039
00040 #ifndef SYSLOGLOGGER_H
00041 #define SYSLOGLOGGER_H
00042
00043 #include "Logger.h"
00044 #include <syslog.h>
00045
00053 namespace nevelex_util
00054 {
00073 class SyslogLogger : public Logger
00074 {
00075 private:
00090 int getSyslogLevel(LOGGING_LEVELS level);
00091
00092 public:
00103 SyslogLogger(char *ident,int option=LOG_NDELAY|LOG_PID|LOG_CONS|LOG_PERROR,int facility=LOG_LOCAL0);
00104
00106 virtual ~SyslogLogger();
00107
00115 virtual void log(LOGGING_LEVELS level,char *format,...);
00116 };
00117 };
00118 #endif
|
||
Copyright © 2003. All Rights Reserved. Nevelex Corporation.
Generated: Sat Sep 6 15:54:01 2003