galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Log.hpp File Reference
#include <filesystem>
#include <source_location>
#include <stacktrace>
#include <entt/locator/locator.hpp>
#include <magic_enum/magic_enum.hpp>
#include "galaxy/logging/LogLevel.hpp"
#include "galaxy/logging/Sink.hpp"
#include "galaxy/utils/StringUtils.hpp"
+ Include dependency graph for Log.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  galaxy::logging::Log
 Sink based logging system. More...
 

Namespaces

namespace  galaxy
 Timer.hpp galaxy.
 
namespace  galaxy::logging
 

Macros

#define GALAXY_INFO   galaxy::logging::LogLevel::_INFO_
 Log.hpp galaxy.
 
#define GALAXY_DEBUG   galaxy::logging::LogLevel::_DEBUG_
 
#define GALAXY_WARNING   galaxy::logging::LogLevel::_WARNING_
 
#define GALAXY_ERROR   galaxy::logging::LogLevel::_ERROR_
 
#define GALAXY_FATAL   galaxy::logging::LogLevel::_FATAL_
 
#define GALAXY_LOG_SET_MIN_LEVEL(level)
 
#define GALAXY_ADD_SINK(sink, ...)
 
#define GALAXY_LOG(level, msg, ...)
 

Macro Definition Documentation

◆ GALAXY_INFO

#define GALAXY_INFO   galaxy::logging::LogLevel::_INFO_

Log.hpp galaxy.

See LICENSE.txt.

Definition at line 22 of file Log.hpp.

◆ GALAXY_DEBUG

#define GALAXY_DEBUG   galaxy::logging::LogLevel::_DEBUG_

Definition at line 23 of file Log.hpp.

◆ GALAXY_WARNING

#define GALAXY_WARNING   galaxy::logging::LogLevel::_WARNING_

Definition at line 24 of file Log.hpp.

◆ GALAXY_ERROR

#define GALAXY_ERROR   galaxy::logging::LogLevel::_ERROR_

Definition at line 25 of file Log.hpp.

◆ GALAXY_FATAL

#define GALAXY_FATAL   galaxy::logging::LogLevel::_FATAL_

Definition at line 26 of file Log.hpp.

◆ GALAXY_LOG_SET_MIN_LEVEL

#define GALAXY_LOG_SET_MIN_LEVEL ( level)
Value:
entt::locator<galaxy::logging::Log>::value().set_min_level<level>()

Definition at line 27 of file Log.hpp.

◆ GALAXY_ADD_SINK

#define GALAXY_ADD_SINK ( sink,
... )
Value:
entt::locator<galaxy::logging::Log>::value().add_sink<sink>(__VA_ARGS__)

Definition at line 28 of file Log.hpp.

◆ GALAXY_LOG

#define GALAXY_LOG ( level,
msg,
... )
Value:
entt::locator<galaxy::logging::Log>::value().log<level>(std::source_location::current(), msg __VA_OPT__(, ) __VA_ARGS__)

Definition at line 29 of file Log.hpp.