00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __libutilxx__sella__util__MixedLogFormat_H__
00010 #define __libutilxx__sella__util__MixedLogFormat_H__
00011
00012 #include "../../common.h"
00013 #include "../Exception.h"
00014 #include "LogFormat.h"
00015
00016 #include <syslog.h>
00017 #include <sys/time.h>
00018
00019 #include <string>
00020
00021 namespace sella {
00022 namespace util {
00023 class MixedLogFormat;
00024 class Log;
00025 }
00026 }
00027
00028 class sella::util::MixedLogFormat : public LogFormat {
00029 friend class Log;
00030
00031 public:
00032 MixedLogFormat(int threshold = LOG_WARNING) throw ();
00033
00034 virtual sella::util::MixedLogFormat* clone(void) const throw ();
00035
00036 protected:
00037 virtual const std::string format(int priority, const char *stamp, const char *func, const char *file, int line, const sella::Exception &e, const char *message) throw ();
00038 virtual const std::string format(int priority, const char *stamp, const char *func, const char *file, int line, const char *message) throw ();
00039 virtual const std::string format(int priority, const char *stamp, const char *func, const char *file, int line, const char *option, const char *message) throw ();
00040
00041 protected:
00042 int threshold;
00043 };
00044
00045 #endif
00046
00047
00048
00049