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.cpp
Go to the documentation of this file.
1
7
8
#include "
Log.hpp
"
9
10
using namespace
std::chrono_literals;
11
12
namespace
galaxy
13
{
14
Log::Log
() noexcept
15
: m_min_level {
LogLevel::INFO
}
16
{
17
m_sinks.reserve(2);
18
}
19
20
Log::~Log
() noexcept
21
{
22
// We reset min level because logging is done as a singleton.
23
m_min_level
=
LogLevel::INFO
;
24
m_sinks
.clear();
25
}
26
}
// namespace galaxy
Log.hpp
galaxy::Log::Log
Log() noexcept
Constructor.
Definition
Log.cpp:14
galaxy::Log::~Log
~Log() noexcept
Destructor.
Definition
Log.cpp:20
galaxy::Log::m_sinks
std::vector< std::unique_ptr< Sink > > m_sinks
List of sinks.
Definition
Log.hpp:118
galaxy::Log::m_min_level
LogLevel m_min_level
Minimum level for a message to be logged.
Definition
Log.hpp:113
galaxy
Timer.hpp galaxy.
Definition
Timer.cpp:18
galaxy::LogLevel::INFO
@ INFO
Info Log Level.
galaxy
src
galaxy
logging
Log.cpp
Generated on Wed Aug 20 2025 08:06:51 for galaxy by
1.12.0