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
10using namespace std::chrono_literals;
11
12namespace 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.
24 m_sinks.clear();
25 }
26} // namespace galaxy
Log() noexcept
Constructor.
Definition Log.cpp:14
~Log() noexcept
Destructor.
Definition Log.cpp:20
std::vector< std::unique_ptr< Sink > > m_sinks
List of sinks.
Definition Log.hpp:118
LogLevel m_min_level
Minimum level for a message to be logged.
Definition Log.hpp:113
Timer.hpp galaxy.
Definition Timer.cpp:18
@ INFO
Info Log Level.