00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __libutilxx__sella__util__VerboseLogFormat_H__
00010 #define __libutilxx__sella__util__VerboseLogFormat_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 VerboseLogFormat;
00023 class Log;
00024 }
00025 }
00026
00027 class sella::util::VerboseLogFormat : public LogFormat {
00028 friend class Log;
00029
00030 public:
00031 VerboseLogFormat(const std::string &stamp = DefaultStampFormat, bool micro = true) throw ();
00032
00033 virtual sella::util::VerboseLogFormat* clone(void) const throw ();
00034
00035 protected:
00036 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 ();
00037 virtual const std::string format(int priority, const char *stamp, const char *func, const char *file, int line, 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 *option, const char *message) throw ();
00039 };
00040
00041 #endif
00042
00043
00044
00045