Joedb 10.4.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Stream_Logger.h
Go to the documentation of this file.
1#ifndef joedb_Stream_Logger_declared
2#define joedb_Stream_Logger_declared
3
5
6#include <iosfwd>
7#include <mutex>
8
9namespace joedb
10{
11 /// @ingroup error
12 class Stream_Logger: public Logger
13 {
14 private:
15 std::ostream &out;
16 const std::string tag;
17 std::mutex mutex;
18
19 public:
20 Stream_Logger(std::ostream &out, std::string tag = "");
21 void log(beman::cstring_view message) noexcept override;
22 };
23}
24
25#endif
void log(beman::cstring_view message) noexcept override