Singleton class that allows logging to the console as well as async to a file.
More...
#include <Logger.h>
Inherits Fling::Singleton< Logger >.
|
virtual void | Init () override |
|
virtual FLING_API void | Shutdown () |
|
|
static std::shared_ptr< spdlog::logger > | m_Console = nullptr |
| Pointer to the current console that is being used for logging. More...
|
|
static std::shared_ptr< spdlog::logger > | m_FileLog = nullptr |
| Pointer to the log file logger. More...
|
|
|
| Singleton ()=default |
| Every singleton must have a default constructor so that explicit creation and destruction of them is maintained. More...
|
|
Singleton class that allows logging to the console as well as async to a file.
Use the defines to actually log strings out.
◆ GetCurrentConsole()
std::shared_ptr< spdlog::logger > Fling::Logger::GetCurrentConsole |
( |
| ) |
|
|
static |
Gets a reference to the current logging console
- Returns
- Shader ptr to the current console
◆ GetCurrentLogFile()
std::shared_ptr< spdlog::logger > Fling::Logger::GetCurrentLogFile |
( |
| ) |
|
|
static |
Get the current async log file that is being written to.
◆ Init()
void Fling::Logger::Init |
( |
| ) |
|
|
overridevirtual |
◆ m_Console
std::shared_ptr< spdlog::logger > Fling::Logger::m_Console = nullptr |
|
staticprotected |
Pointer to the current console that is being used for logging.
◆ m_FileLog
std::shared_ptr< spdlog::logger > Fling::Logger::m_FileLog = nullptr |
|
staticprotected |
Pointer to the log file logger.
The documentation for this class was generated from the following files: