Class · aurore

aurore::Logger

On this page
aurore/core/logger.hpp
#include <aurore/core/logger.hpp>

class aurore::Logger

Types 1

using TimePoint = std::chrono::system_clock::time_point

Static functions 11

static void setLogLevel(LogLevel logLevel)
static LogLevel getLogLevel()
static void setLogOutput(std::FILE *logOut)
static void setThreadSafeLogging(bool threadSafeLogging)

If sets to true, each log operation will lock a mutex, making the Logger thread-safe.

logger.hpp:88
template <typename... Args>static void log(LogLevel level,std::string prefix,std::string color,fmt::format_string< Args... > format,Args &&... args)
template <typename... Args>static void error(fmt::format_string< Args... > format,Args &&... args)
template <typename... Args>static void warning(fmt::format_string< Args... > format,Args &&... args)
template <typename... Args>static void info(fmt::format_string< Args... > format, Args &&... args)
template <typename... Args>static void debug(fmt::format_string< Args... > format,Args &&... args)
template <typename... Args>static void verbose(fmt::format_string< Args... > format,Args &&... args)
static Event< TimePoint, LogLevel, std::string > * getLogEvent()

Read from Aurore's headers by Doxygen at each build · library/include