|
VoltMod
C++23 framework for CS2 server plugins
|
#include <cstdint>#include <format>#include <functional>#include <string>#include <string_view>Go to the source code of this file.
Namespaces | |
| namespace | VoltMod |
| namespace | VoltMod::Log |
Typedefs | |
| using | VoltMod::Log::Handler = std::function< void(LogLevel level, std::string_view message)> |
| Where log lines end up. | |
Enumerations | |
| enum class | VoltMod::LogLevel : uint8_t { VoltMod::Info , VoltMod::Warn , VoltMod::Error } |
Functions | |
| void | VoltMod::Log::SetHandler (Handler handler) |
| bool | VoltMod::Log::Enabled () |
| void | VoltMod::Log::SetMinimumLevel (LogLevel level) |
| LogLevel | VoltMod::Log::MinimumLevel () |
| bool | VoltMod::Log::Wanted (LogLevel level) |
| void | VoltMod::Log::Emit (LogLevel level, std::string message) |
| void | VoltMod::Log::DeliverPending () |
| template<typename... Args> | |
| void | VoltMod::Log::Info (std::format_string< Args... > fmt, Args &&... args) |
| template<typename... Args> | |
| void | VoltMod::Log::Warn (std::format_string< Args... > fmt, Args &&... args) |
| template<typename... Args> | |
| void | VoltMod::Log::Error (std::format_string< Args... > fmt, Args &&... args) |