IRSOL
C++ code implementing socket server for interacting with Baumer camera.
logging.cpp File Reference
#include "irsol/logging.hpp"
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/rotating_file_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>

Go to the source code of this file.

Namespaces

namespace  irsol
 
namespace  irsol::internal
 

Functions

void irsol::setLoggerName (const char *name)
 Sets the name of the default logger.
 
void irsol::setLoggingFormat (LoggingFormat format=LoggingFormat::FILE, std::optional< std::shared_ptr< spdlog::logger > > logger=std::nullopt)
 Sets the global logging format.
 
void irsol::setSinkLoggingFormat (LoggingFormat format, std::shared_ptr< spdlog::sinks::sink > sink)
 Sets the logging format for a specific sink.
 
void irsol::initLogging (const char *fileSinkFilename="logs/irsol.log", std::optional< spdlog::level::level_enum > minLogLevel=std::nullopt)
 Initializes the irsol logging system.