Pol  Revision:4b29d2b
LogSink.h
Go to the documentation of this file.
1 /*
2 ATTENTION:
3 This header is part of the PCH
4 Remove the include in all StdAfx.h files or live with the consequences :)
5 */
6 #ifndef CLIB_LOG_SINK_H
7 #define CLIB_LOG_SINK_H
8 
9 #include <boost/noncopyable.hpp>
10 #include <iosfwd>
11 #include <string>
12 
13 #include <format/format.h>
14 
15 namespace Pol
16 {
17 namespace Clib
18 {
19 namespace Logging
20 {
21 class LogSink : boost::noncopyable
22 {
23 public:
24  LogSink();
25  virtual ~LogSink();
26 
27  virtual void addMessage( fmt::Writer* msg ) = 0;
28  virtual void addMessage( fmt::Writer* msg, const std::string& id ) = 0;
29 
33  static void addTimeStamp( std::ostream& stream );
34 
38  static std::string getTimeStamp();
39 };
40 }
41 }
42 } // namespaces
43 
44 #endif
virtual void addMessage(fmt::Writer *msg)=0
static std::string getTimeStamp()
Definition: LogSink.cpp:30
static void addTimeStamp(std::ostream &stream)
Definition: LogSink.cpp:25
Definition: berror.cpp:12