Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
String_Logger.h
Go to the documentation of this file.
1#ifndef joedb_String_Logger
2#define joedb_String_Logger
3
5
6#include <string>
7
8namespace joedb
9{
10 /// @ingroup error
11 class String_Logger: public Logger
12 {
13 private:
14 std::string message_memory;
15
16 public:
17 void write(std::string_view message) noexcept override
18 {
19 message_memory = message;
20 }
21
22 const std::string &get_message() const
23 {
24 return message_memory;
25 }
26
28 };
29}
30
31#endif
const std::string & get_message() const
static String_Logger the_logger
void write(std::string_view message) noexcept override