Elevate Engine 1
Loading...
Searching...
No Matches
Elevate::LogImpl Class Reference

#include <Log.h>

Public Member Functions

 LogImpl (std::shared_ptr< spdlog::logger > logger)
 
void Trace (const std::string &text)
 
void Info (const std::string &text)
 
void Warn (const std::string &text)
 
void Error (const std::string &text)
 
void Fatal (const std::string &text)
 

Detailed Description

Definition at line 27 of file Log.h.

Constructor & Destructor Documentation

◆ LogImpl()

Elevate::LogImpl::LogImpl ( std::shared_ptr< spdlog::logger >  logger)
inline

Definition at line 29 of file Log.h.

29: m_logger(logger) { }

Member Function Documentation

◆ Error()

void Elevate::LogImpl::Error ( const std::string &  text)
inline

Definition at line 33 of file Log.h.

33{ m_logger->error(EE_ERROR_PREFIX "{}", text); }
#define EE_ERROR_PREFIX
Definition Log.h:22

◆ Fatal()

void Elevate::LogImpl::Fatal ( const std::string &  text)
inline

Definition at line 34 of file Log.h.

34{ m_logger->critical(EE_FATAL_PREFIX "{}", text); }
#define EE_FATAL_PREFIX
Definition Log.h:23

◆ Info()

void Elevate::LogImpl::Info ( const std::string &  text)
inline

Definition at line 31 of file Log.h.

31{ m_logger->info(EE_INFO_PREFIX "{}", text); }
#define EE_INFO_PREFIX
Definition Log.h:20

◆ Trace()

void Elevate::LogImpl::Trace ( const std::string &  text)
inline

Definition at line 30 of file Log.h.

30{ m_logger->trace(EE_TRACE_PREFIX "{}", text); }
#define EE_TRACE_PREFIX
Definition Log.h:19

◆ Warn()

void Elevate::LogImpl::Warn ( const std::string &  text)
inline

Definition at line 32 of file Log.h.

32{ m_logger->warn(EE_WARN_PREFIX "{}", text); }
#define EE_WARN_PREFIX
Definition Log.h:21

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