Joedb 10.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Global_Logger.h
Go to the documentation of this file.
1#ifndef joedb_Global_Logger
2#define joedb_Global_Logger
3
4#include "external/cstring_view.hpp"
5#include <mutex>
6
7namespace joedb
8{
9 class Logger;
10
11 /// @ingroup error
13 {
14 private:
15 static Logger *the_logger;
16 static std::mutex mutex;
17
18 public:
19 static void warning(beman::cstring_view message) noexcept;
20 static void set_logger(Logger *new_logger);
21 static void remove_logger();
22 static void set_logger();
23 };
24}
25
26#endif
static void remove_logger()
static void set_logger()
static void warning(beman::cstring_view message) noexcept