Logger.ixx File
Simple synchronous logger with configurable output sinks. More...
Included Headers
#include <string>
#include <vector>
#include <memory>
#include <mutex>
#include <iostream>
#include <helios.util.log.LogSink>
Namespaces Index
| namespace | helios |
| namespace | util |
|
Utility functions and helper classes. More... | |
| namespace | log |
|
Logging system with self-registering output sinks. More... | |
Classes Index
| class | Logger |
|
Logger implementation with configurable output sinks. More... | |
Description
Simple synchronous logger with configurable output sinks.
File Listing
The file content with the documentation metadata removed is:
17export namespace helios::util::log {
61 void dispatch(LogLevel level, const std::string& msg) const noexcept {
69 case LogLevel::Debug: levelStr = "[DEBUG]"; break;
70 case LogLevel::Info: levelStr = "[INFO]"; break;
71 case LogLevel::Warn: levelStr = "[WARN]"; break;
72 case LogLevel::Error: levelStr = "[ERROR]"; break;
99 enabled_ = enable;
115 void clearSinks() noexcept {
136 dispatch(LogLevel::Warn, msg);
145 dispatch(LogLevel::Debug, msg);
154 dispatch(LogLevel::Info, msg);
163 dispatch(LogLevel::Error, msg);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.