~singpolyma/biboumi

ref: 46ff73662cc94220c5ee962b591c8ee327de6f85 biboumi/louloulibs/utils/reload.cpp -rw-r--r-- 289 bytes
46ff7366 — louiz’ Clean the Config module, use static things instead of a stupid singleton 6 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#include <config/config.hpp>
#include <logger/logger.hpp>

void reload_process()
{
  Config::read_conf();
  // Destroy the logger instance, to be recreated the next time a log
  // line needs to be written
  Logger::instance().reset();
  log_debug("Configuration and logger reloaded.");
}