Fling Engine  0.00.1
Fling Engine is a game engine written in Vulkan
Data Structures | Namespaces | Macros
Logger.h File Reference
#include "Platform.h"
#include "Singleton.hpp"
#include "spdlog/spdlog.h"
#include "spdlog/sinks/stdout_sinks.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/async.h"
#include "spdlog/sinks/stdout_color_sinks.h"

Go to the source code of this file.

Data Structures

class  Fling::Logger
 Singleton class that allows logging to the console as well as async to a file. More...
 

Namespaces

 Fling
 

Macros

#define SPDLOG_TRACE_ON
 
#define SPDLOG_DEBUG_ON
 
#define F_LOG_TRACE(...)
 
#define F_LOG_WARN(...)
 
#define F_LOG_ERROR(...)
 
#define F_LOG_FATAL(...)
 Log a message to the error console AND throw a runtime exception. More...
 

Macro Definition Documentation

◆ F_LOG_ERROR

#define F_LOG_ERROR (   ...)

◆ F_LOG_FATAL

#define F_LOG_FATAL (   ...)
Value:
Logger::GetCurrentConsole()->error( __VA_ARGS__ ); \
throw std::runtime_error( __VA_ARGS__ )

Log a message to the error console AND throw a runtime exception.

Only use for fatal asserts! Left in in release builds!

◆ F_LOG_TRACE

#define F_LOG_TRACE (   ...)

◆ F_LOG_WARN

#define F_LOG_WARN (   ...)

◆ SPDLOG_DEBUG_ON

#define SPDLOG_DEBUG_ON

◆ SPDLOG_TRACE_ON

#define SPDLOG_TRACE_ON