Skip to main content

LogSink.ixx File

Abstract interface for log output destinations. More...

Included Headers

#include <string>

Namespaces Index

namespacehelios
namespaceengine
namespaceutil
namespacelog

Classes Index

classhelios::engine::util::log::LogSink

Description

Abstract interface for log output destinations.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <string>
8
9export module helios.engine.util.log.LogSink;
10
11export namespace helios::engine::util::log {
12
16 enum class LogLevel {
17 Debug,
18 Info,
19 Warn,
21 };
22
39 using SinkTypeId = const char*;
40
54 class LogSink {
55
56 public:
57 virtual ~LogSink() = default;
58
67 [[nodiscard]] virtual SinkTypeId typeId() const noexcept = 0;
68
76 virtual void write(LogLevel level, const std::string& scope, const std::string& message) = 0;
77
83 virtual void flush() {}
84 };
85
86}
87

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.