smgl 0.11.0
Structured Metadata Engine and Graph Objects Library
Loading...
Searching...
No Matches
Logging.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <ostream>
4#include <string>
5
14namespace smgl
15{
16
19 All = 0,
20 Debug = 10,
21 Info = 20,
22 Warning = 30,
23 Error = 40,
24 None = 100
25};
26
29
31void SetLogLevel(const std::string& level);
32
35
38
39} // namespace smgl
Project top-level namespace.
void SetLogStream(std::ostream *os)
Set the output stream.
auto GetLogLevel() -> LogLevel
Get the library log level.
LogLevel
Log levels.
Definition Logging.hpp:18
@ None
No messages.
Definition Logging.hpp:24
@ All
All messages.
Definition Logging.hpp:19
@ Warning
Warning messages and above.
Definition Logging.hpp:22
@ Debug
Debug messages and above.
Definition Logging.hpp:20
@ Error
Error messages and above.
Definition Logging.hpp:23
@ Info
Info messages and above.
Definition Logging.hpp:21
void SetLogLevel(LogLevel level)
Set the library log level.