Utopia 2
Framework for studying models of complex & adaptive systems.
|
#include <string>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include "ostream.hh"
Go to the source code of this file.
Namespaces | |
namespace | Utopia |
Functions | |
std::shared_ptr< spdlog::logger > | Utopia::init_logger (const std::string name, const spdlog::level::level_enum level, const bool throw_on_exist=true) |
Initialize a logger with a certain name and log level. | |
void | Utopia::setup_loggers (const spdlog::level::level_enum level_core=spdlog::level::warn, const spdlog::level::level_enum level_data_io=spdlog::level::warn, const spdlog::level::level_enum level_data_mngr=spdlog::level::warn, const std::string &log_pattern="") |
Set up and register the global loggers and set the global log pattern. | |
Variables | |
const std::string | Utopia::log_core = "core" |
const std::string | Utopia::log_data_io = "data_io" |
const std::string | Utopia::log_data_mngr = "data_mngr" |