Grail (C++)  1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
DefaultSink.hh
1 // Copyright QED Software 2023.
2 
3 #ifndef GRAIL_DEFAULT_SINK_H
4 #define GRAIL_DEFAULT_SINK_H
5 
6 #include <sstream>
7 
8 #include "Sink.hh"
9 
10 namespace grail
11 {
12 namespace logger
13 {
17  class DefaultSink : public Sink
18  {
19  public:
20  DefaultSink(bool isSynchronized = false);
21 
22  protected:
23  virtual void Log(const std::string& loggerName,
24  Severity severity,
25  const std::string& message,
26  const std::string& logFileLocation,
27  const std::size_t& logLineNumber) override;
28  };
29 }
30 }
31 
32 #endif //GRAIL_DEFAULT_SINK_H
grail::logger::Sink
The Sink class - destination of logger messages.
Definition: Sink.hh:18
grail::logger::DefaultSink
The DefaultSink class - sink writing messages to standard system output.
Definition: DefaultSink.hh:17
grail::logger::DefaultSink::Log
virtual void Log(const std::string &loggerName, Severity severity, const std::string &message, const std::string &logFileLocation, const std::size_t &logLineNumber) override
Log - override this method to define how the messege should be logged.
Definition: DefaultSink.cpp:17