libutil++  1.9.3
 All Classes Functions Variables
VerboseLogFormat.h
1 /*
2 ** libutil++
3 ** $Id: VerboseLogFormat.h 1653 2016-02-28 19:54:59Z sella $
4 ** Copyright (c) 2011-2016 Digital Genesis, LLC. All Rights Reserved.
5 ** Released under the LGPL Version 2.1 License.
6 ** http://www.digitalgenesis.com
7 */
8 
9 #ifndef __libutilxx__sella__util__VerboseLogFormat_H__
10 #define __libutilxx__sella__util__VerboseLogFormat_H__
11 
12 #include "../../common.h"
13 #include "../Exception.h"
14 #include "LogFormat.h"
15 
16 #include <sys/time.h>
17 
18 #include <string>
19 
20 namespace sella {
21  namespace util {
22  class VerboseLogFormat;
23  class Log;
24  }
25 }
26 
28  friend class Log;
29 
30  public:
31  VerboseLogFormat(const std::string &stamp = DefaultStampFormat, bool micro = true) throw ();
32 
33  virtual sella::util::VerboseLogFormat* clone(void) const throw ();
34 
35  protected:
36  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 ();
37  virtual const std::string format(int priority, const char *stamp, const char *func, const char *file, int line, const char *message) throw ();
38  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 ();
39 };
40 
41 #endif
42 
43 /*
44 ** vim: noet ts=3 sw=3
45 */