Utopia  2
Framework for studying models of complex & adaptive systems.
Namespaces | Functions | Variables
logging.hh File Reference
#include <string>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include "ostream.hh"
Include dependency graph for logging.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 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. More...
 
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. More...
 

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"