10#include <source_location>
80RETINIFY_API void LogDebug(const
char *message, std::source_location location = std::source_location::current()) noexcept;
88RETINIFY_API void LogInfo(const
char *message, std::source_location location = std::source_location::current()) noexcept;
96RETINIFY_API void LogWarn(const
char *message, std::source_location location = std::source_location::current()) noexcept;
104RETINIFY_API void LogError(const
char *message, std::source_location location = std::source_location::current()) noexcept;
112RETINIFY_API void LogFatal(const
char *message, std::source_location location = std::source_location::current()) noexcept;
#define RETINIFY_API
Defines a macro for setting API visibility to "default" for the retinify library.
Definition attributes.hpp:8
Definition colormap.hpp:13
RETINIFY_API auto GetLogLocation() noexcept -> LogLocation
Returns the current log location setting.
RETINIFY_API void LogInfo(const char *message, std::source_location location=std::source_location::current()) noexcept
Logs an informational message.
LogLocation
Logging source location options.
Definition logging.hpp:53
@ NONE
No source location.
RETINIFY_API void SetLogLevel(LogLevel level) noexcept
Sets the log level.
RETINIFY_API void SetLogLocation(LogLocation location) noexcept
Sets the log location setting.
RETINIFY_API auto GetLogLevel() noexcept -> LogLevel
Returns the current log level.
RETINIFY_API void LogError(const char *message, std::source_location location=std::source_location::current()) noexcept
Logs an error message.
RETINIFY_API void LogWarn(const char *message, std::source_location location=std::source_location::current()) noexcept
Logs a warning message.
RETINIFY_API void LogFatal(const char *message, std::source_location location=std::source_location::current()) noexcept
Logs a fatal error message.
RETINIFY_API void LogDebug(const char *message, std::source_location location=std::source_location::current()) noexcept
Logs a debug message.
LogLevel
Logging verbosity levels.
Definition logging.hpp:17
@ FATAL
Fatal Error messages.
@ INFO
Informational messages.
@ OFF
Disable all logging.