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 namespace logging
15 {
16 Log::Log() noexcept
17 : m_min_level {LogLevel::_INFO_}
18 {
19 m_sinks.reserve(2);
20 }
21
22 Log::~Log() noexcept
23 {
25 m_sinks.clear();
26 }
27 } // namespace logging
28} // namespace galaxy
std::vector< std::unique_ptr< Sink > > m_sinks
List of sinks.
Definition Log.hpp:120
LogLevel m_min_level
Minimum level for a message to be logged.
Definition Log.hpp:115
~Log() noexcept
Destructor.
Definition Log.cpp:22
Log() noexcept
Constructor.
Definition Log.cpp:16
@ _INFO_
Info Log Level.
Timer.hpp galaxy.
Definition Async.hpp:17