| 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"`
`#include "spdlog/fmt/fmt.h"`
`#include "spdlog/fmt/ostr.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:
Fling::Logger::GetCurrentConsole()->error( __VA_ARGS__ ); \
throw std::runtime_error( __VA_ARGS__ )
Fling::Logger::GetCurrentConsole
static std::shared_ptr< spdlog::logger > GetCurrentConsole()
Gets a reference to the current logging console
Definition: Logger.cpp:37

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