|
CORSIKA
@c8_version@
The framework to simulate particle cascades for astroparticle physics
|
CORSIKA8 logging utilities. More...
#include <spdlog/fmt/ostr.h>#include <spdlog/sinks/stdout_color_sinks.h>#include <spdlog/spdlog.h>#include <corsika/detail/framework/core/Logging.inl>

Go to the source code of this file.
Namespaces | |
| corsika | |
| `, since they are used everywhere as integral part of the framework. | |
Functions | |
| std::shared_ptr< spdlog::logger > | corsika::create_logger (std::string const &name, bool const defaultlog=false) |
| Create a new C8-style logger. More... | |
| std::shared_ptr< spdlog::logger > | corsika::get_logger (std::string const &name, bool const defaultlog=false) |
| Get a smart pointer to an existing logger. More... | |
| auto | corsika::logging::set_default_level (level::level_enum const minlevel) -> void |
| Set the default log level for all newly created loggers. More... | |
| template<typename TLogger > | |
| auto | corsika::logging::add_source_info (TLogger &logger) -> void |
| Add the source (filename, line no) info to the logger. More... | |
| template<typename TLogger > | |
| auto | corsika::logging::reset_pattern (TLogger &logger) -> void |
| Reset the logging pattern to the default. More... | |
CORSIKA8 logging utilities.
See testLogging.cpp for a complete set of examples for how the logging functions should be used.
Definition in file Logging.hpp.
| auto corsika::logging::add_source_info | ( | TLogger & | logger | ) | -> void |
Add the source (filename, line no) info to the logger.
| logger | The logger to set the level of. |
| auto corsika::logging::reset_pattern | ( | TLogger & | logger | ) | -> void |
Reset the logging pattern to the default.
| logger | The logger to set the level of. |
| auto corsika::logging::set_default_level | ( | level::level_enum const | minlevel | ) | -> void |
Set the default log level for all newly created loggers.
| minlevel | The minimum log level required to print. |