lucid  0.0.1
Lifting-based Uncertain Control Invariant Dynamics
Loading...
Searching...
No Matches
logging.cpp File Reference
#include "lucid/util/logging.h"
#include <memory>
#include <string>
#include <utility>
#include <spdlog/common.h>
#include <spdlog/pattern_formatter.h>
#include <spdlog/sinks/callback_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>

Namespaces

namespace  lucid
 Root namespace for the lucid library.
 
namespace  lucid::log
 Collection of logging utilities.
 

Functions

std::shared_ptr< spdlog::logger > lucid::log::get_logger (LoggerType logger_type)
 Get a logger of the specified type.
 
void lucid::log::set_logger_sink (spdlog::custom_log_callback cb)
 Replace the standard logger sink with a custom callback.
 
void lucid::log::set_logger_sink (std::function< void(std::string)> cb)
 Replace the standard logger sink with a custom callback.
 
void lucid::log::set_pattern (const std::string &format)
 Set the format of the logger.
 
void lucid::log::clear_logger ()
 Clear the logger, removing all loggers and their sinks.
 
void lucid::log::set_verbosity_level (spdlog::level::level_enum level)
 Set the verbosity level of the logger.
 
void lucid::log::set_verbosity_level (int level)
 Set the verbosity level of the logger.
 

Detailed Description

Author
Room 6.030
Licence:
BSD 3-Clause License