SaturnRingLibrary 0.6
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::Logger Namespace Reference

Detailed Description

Logger namespace that holds the logger functionality.

This class allows for writing log messages into kronos console

Classes

class  Log
 Log class. More...
 

Enumerations

enum class  LogLevels : uint8_t {
  TRACE = 0 , TESTING = 1 , INFO = 2 , WARNING = 3 ,
  FATAL = 4 , NONE = 99
}
 LogLevels. More...
 

Functions

template<typename ... Args>
void LogDebug (const char *message, Args...args)
 Log Debug message.
 
template<typename ... Args>
void LogFatal (const char *message, Args...args)
 Log Fatal message.
 
template<typename ... Args>
void LogInfo (const char *message, Args...args)
 Log Info message.
 
template<typename ... Args>
void LogPrint (const char *message, Args...args)
 Log message.
 
template<typename ... Args>
void LogTrace (const char *message, Args...args)
 Log Trace message.
 
template<typename ... Args>
void LogWarning (const char *message, Args...args)
 Log Warning message.
 

Enumeration Type Documentation

◆ LogLevels

enum class SRL::Logger::LogLevels : uint8_t
strong

LogLevels.

Enumerator
TRACE 

TRACE Level, used to trace code execution while debugging.

TESTING 

DEBUG Level, debug traces, may disappear at release.

INFO 

INFO Level, generic information messages.

WARNING 

WARNING Level, warning messages.

FATAL 

FATAL Level, message display before a crash.

NONE 

NONE Level, used to disable logging.

Function Documentation

◆ LogDebug()

template<typename ... Args>
void SRL::Logger::LogDebug ( const char * message,
Args... args )
inline

Log Debug message.

Parameters
messageCustom message to show
argsText arguments

◆ LogFatal()

template<typename ... Args>
void SRL::Logger::LogFatal ( const char * message,
Args... args )
inline

Log Fatal message.

Parameters
messageCustom message to show
argsText arguments

◆ LogInfo()

template<typename ... Args>
void SRL::Logger::LogInfo ( const char * message,
Args... args )
inline

Log Info message.

Parameters
messageCustom message to show
argsText arguments

◆ LogPrint()

template<typename ... Args>
void SRL::Logger::LogPrint ( const char * message,
Args... args )
inline

Log message.

Parameters
messageCustom message to show
argsText arguments

◆ LogTrace()

template<typename ... Args>
void SRL::Logger::LogTrace ( const char * message,
Args... args )
inline

Log Trace message.

Parameters
messageCustom message to show
argsText arguments

◆ LogWarning()

template<typename ... Args>
void SRL::Logger::LogWarning ( const char * message,
Args... args )
inline

Log Warning message.

Parameters
messageCustom message to show
argsText arguments