LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Logging::Log Class Reference

#include <logging.hpp>

Classes

class  LogImpl
 

Public Member Functions

 Log (const String &name)
 
 Log (Log &&)=delete
 
 Log (const Log &)=delete
 
virtual ~Log () noexcept
 
virtual const StringgetName () const noexcept
 Gets the name of the logger. More...
 
template<typename ... TArgs>
void log (const LogLevel &level, StringView format, TArgs &&... args)
 
template<typename ... TArgs>
void trace (StringView format, TArgs &&... args)
 
template<typename ... TArgs>
void debug (StringView format, TArgs &&... args)
 
template<typename ... TArgs>
void info (StringView format, TArgs &&... args)
 
template<typename ... TArgs>
void warning (StringView format, TArgs &&... args)
 
template<typename ... TArgs>
void error (StringView format, TArgs &&... args)
 
template<typename ... TArgs>
void fatal (StringView format, TArgs &&... args)
 

Protected Member Functions

virtual void log (const LogLevel &level, StringView message)
 

Constructor & Destructor Documentation

◆ Log() [1/3]

Log::Log ( const String name)

◆ Log() [2/3]

LiteFX::Logging::Log::Log ( Log &&  )
delete

◆ Log() [3/3]

LiteFX::Logging::Log::Log ( const Log )
delete

◆ ~Log()

Log::~Log ( )
virtualdefaultnoexcept

Member Function Documentation

◆ debug()

template<typename ... TArgs>
void LiteFX::Logging::Log::debug ( StringView  format,
TArgs &&...  args 
)
inline

◆ error()

template<typename ... TArgs>
void LiteFX::Logging::Log::error ( StringView  format,
TArgs &&...  args 
)
inline

◆ fatal()

template<typename ... TArgs>
void LiteFX::Logging::Log::fatal ( StringView  format,
TArgs &&...  args 
)
inline

◆ getName()

const String & Log::getName ( ) const
inlinevirtualnoexcept

Gets the name of the logger.

◆ info()

template<typename ... TArgs>
void LiteFX::Logging::Log::info ( StringView  format,
TArgs &&...  args 
)
inline

◆ log() [1/2]

template<typename ... TArgs>
void LiteFX::Logging::Log::log ( const LogLevel &  level,
StringView  format,
TArgs &&...  args 
)
inline

◆ log() [2/2]

void Log::log ( const LogLevel &  level,
StringView  message 
)
protectedvirtual

◆ trace()

template<typename ... TArgs>
void LiteFX::Logging::Log::trace ( StringView  format,
TArgs &&...  args 
)
inline

◆ warning()

template<typename ... TArgs>
void LiteFX::Logging::Log::warning ( StringView  format,
TArgs &&...  args 
)
inline