00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __libutilxx__sella__util__SimpleLogFormat_H__
00010 #define __libutilxx__sella__util__SimpleLogFormat_H__
00011
00012 #include "../../common.h"
00013 #include "../Exception.h"
00014 #include "LogFormat.h"
00015
00016 #include <sys/time.h>
00017
00018 #include <string>
00019
00020 namespace sella {
00021 namespace util {
00022 class SimpleLogFormat;
00023 class Log;
00024 }
00025 }
00026
00027 class sella::util::SimpleLogFormat : public LogFormat {
00028 friend class Log;
00029
00030 public:
00031 virtual sella::util::SimpleLogFormat* clone(void) const throw ();
00032
00033 protected:
00034 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 ();
00035 virtual const std::string format(int priority, const char *stamp, const char *func, const char *file, int line, const char *message) throw ();
00036 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 ();
00037 };
00038
00039 #endif
00040
00041
00042
00043