VIPRA Documentation
Loading...
Searching...
No Matches
VIPRA::Log Class Reference

Public Types

enum class  Level { DEBUG , INFO , WARN , ERROR }
 

Static Public Member Functions

static void set_level (Level lvl)
 
static void set_level (std::string lvl)
 
template<typename... param_ts>
static VIPRA_INLINE void warn (fmt::format_string< param_ts... > message, param_ts &&... params)
 Calls the provided Logger with Level WARN.
 
template<typename... param_ts>
static VIPRA_INLINE void info (fmt::format_string< param_ts... > message, param_ts &&... params)
 Calls the provided Logger with Level INFO.
 
template<typename... param_ts>
static VIPRA_INLINE void debug (fmt::format_string< param_ts... > message, param_ts &&... params)
 Calls the provided Logger with Level DEBUG.
 
template<typename... param_ts>
static VIPRA_INLINE void error (fmt::format_string< param_ts... > message, param_ts &&... params)
 Calls the provided Logger with Level DEBUG.
 

Member Function Documentation

◆ debug()

template<typename... param_ts>
static VIPRA_INLINE void VIPRA::Log::debug ( fmt::format_string< param_ts... > message,
param_ts &&... params )
inlinestatic

Calls the provided Logger with Level DEBUG.

Template Parameters
params- Variadic Parameters
Parameters
message- Message to pass to logger
ps- Any additional parameters for the logger

◆ error()

template<typename... param_ts>
static VIPRA_INLINE void VIPRA::Log::error ( fmt::format_string< param_ts... > message,
param_ts &&... params )
inlinestatic

Calls the provided Logger with Level DEBUG.

Template Parameters
params- Variadic Parameters
Parameters
message- Message to pass to logger
ps- Any additional parameters for the logger

◆ info()

template<typename... param_ts>
static VIPRA_INLINE void VIPRA::Log::info ( fmt::format_string< param_ts... > message,
param_ts &&... params )
inlinestatic

Calls the provided Logger with Level INFO.

Template Parameters
params- Variadic Parameters
Parameters
message- Message to pass to logger
ps- Any additional parameters for the logger

◆ warn()

template<typename... param_ts>
static VIPRA_INLINE void VIPRA::Log::warn ( fmt::format_string< param_ts... > message,
param_ts &&... params )
inlinestatic

Calls the provided Logger with Level WARN.

Template Parameters
params- Variadic Parameters
Parameters
message- Message to pass to logger
ps- Any additional parameters for the logger

The documentation for this class was generated from the following files: