Simple-Log  alpha-v0.7
ReadyToGo.hpp
Go to the documentation of this file.
1 // Copyright Dominic Koepke 2021 - 2021.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // https://www.boost.org/LICENSE_1_0.txt)
5 
6 #ifndef SL_LOG_READY_TO_GO_HPP
7 #define SL_LOG_READY_TO_GO_HPP
8 
9 #pragma once
10 
11 #include "PresetTypes.hpp"
12 
14 {
15  using namespace log;
16  using namespace preset;
17 
18  inline Core_t gCore;
20  inline auto gLog{ makeLogger<Logger_t>(gCore, SevLvl::info) };
21 }
22 
23 #endif
Sink class for directly logging onto std::cout.
Definition: ConsoleSink.hpp:239
The central point of the whole library. Needs to be instantiated at least once.
Definition: Core.hpp:51
requires std::constructible_from< TSink, TArgs... > TSink & makeSink(TArgs &&... args)
Creates Sink and registers it at this Core instance.
Definition: Core.hpp:130
Definition: ReadyToGo.hpp:14
auto gLog
Definition: ReadyToGo.hpp:20
Core_t gCore
Definition: ReadyToGo.hpp:18
auto & gConsoleSink
Definition: ReadyToGo.hpp:19