CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
SetupLogger.hpp
1 /*
2  * (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 
9 #pragma once
10 
11 namespace corsika::setup {
12 
16  static std::shared_ptr<spdlog::logger> corsika_logger = get_logger("corsika", true);
17  // corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
18 
19 } // namespace corsika::setup
std::shared_ptr< spdlog::logger > get_logger(std::string const &name, bool const defaultlog=false)
Get a smart pointer to an existing logger.