retinify 0.1.7
Real-Time AI Stereo Vision Library
Loading...
Searching...
No Matches
logging.hpp File Reference
#include "retinify/attributes.hpp"
#include "retinify/status.hpp"
#include <cstdint>
#include <source_location>
Include dependency graph for logging.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  retinify
 

Enumerations

enum class  retinify::LogLevel : std::uint8_t {
  retinify::DEBUG , retinify::INFO , retinify::WARN , retinify::ERROR ,
  retinify::FATAL , retinify::OFF
}
 Logging verbosity levels. More...
 
enum class  retinify::LogLocation : std::uint8_t { retinify::NONE , retinify::FUNCTION }
 Logging source location options. More...
 

Functions

RETINIFY_API auto retinify::GetLogLevel () noexcept -> LogLevel
 Returns the current log level.
 
RETINIFY_API void retinify::SetLogLevel (LogLevel level) noexcept
 Sets the log level.
 
RETINIFY_API auto retinify::GetLogLocation () noexcept -> LogLocation
 Returns the current log location setting.
 
RETINIFY_API void retinify::SetLogLocation (LogLocation location) noexcept
 Sets the log location setting.
 
RETINIFY_API void retinify::LogDebug (const char *message, std::source_location location=std::source_location::current()) noexcept
 Logs a debug message.
 
RETINIFY_API void retinify::LogInfo (const char *message, std::source_location location=std::source_location::current()) noexcept
 Logs an informational message.
 
RETINIFY_API void retinify::LogWarn (const char *message, std::source_location location=std::source_location::current()) noexcept
 Logs a warning message.
 
RETINIFY_API void retinify::LogError (const char *message, std::source_location location=std::source_location::current()) noexcept
 Logs an error message.
 
RETINIFY_API void retinify::LogFatal (const char *message, std::source_location location=std::source_location::current()) noexcept
 Logs a fatal error message.