1#ifndef __LOGGER_CONSOLE_HPP__
2#define __LOGGER_CONSOLE_HPP__
4#include <common/logger.hpp>
8#include <source_location>
29 void debug(std::string_view message)
noexcept final;
31 void print(std::string_view prefix,
32 std::string_view message)
noexcept final;
33 void alert(std::string_view prefix,
34 std::string_view message)
noexcept final;
36 void error(std::string_view message,
37 std::source_location location
38 = std::source_location::current()) noexcept final;
40 void raw_log(std::string_view message) noexcept final;
~Console() override=default
Console & operator=(const Console &)=delete
void error(std::string_view message, std::source_location location=std::source_location::current()) noexcept final
Log an error message with optional location details.
Definition logger.cpp:241
void toggle_error() noexcept final
Toggle the error logging behavior on or off.
Definition logger.cpp:292
void toggle_print() noexcept final
Toggle the print logging behavior on or off.
Definition logger.cpp:280
void toggle_alert() noexcept final
Toggle the alert logging behavior on or off.
Definition logger.cpp:286
void alert(std::string_view prefix, std::string_view message) noexcept final
Log an alert message with a prefix.
Definition logger.cpp:228
std::ostream & err_output
Definition console.hpp:56
void debug(std::string_view message) noexcept final
Log a debug message.
Definition logger.cpp:202
Console & operator=(Console &&)=delete
void raw_log(std::string_view message) noexcept final
Log a raw message with no additional formatting.
Definition logger.cpp:256
bool do_flush
Definition console.hpp:58
void print(std::string_view prefix, std::string_view message) noexcept final
Log a regular print message with a prefix.
Definition logger.cpp:215
void toggle_all() noexcept final
Toggle all logging types on or off.
Definition logger.cpp:274
uint32_t flags
Definition console.hpp:54
Console()
Definition logger.cpp:182
std::ostream & output
Definition console.hpp:55
void toggle_debug() noexcept final
Toggle the debug logging behavior on or off.
Definition logger.cpp:267
Console(const Console &)=delete
Console(Console &&)=delete
Definition impl_post_process.hpp:11