xo-umbrella2/xo-indentlog2/include/xo/indentlog2/LogConfig.hpp
Roland Conybeare 43f8fbadf5 + xo-indentlog2/ LogConfig.h [PURSUIT]
Trying to figure out why forgejo ignoring pushes
2026-07-19 12:01:23 -04:00

30 lines
608 B
C++

/** @file LogConfig.hpp
*
* @author Roland Conybeare, Jul 2026
**/
#include <cstdint>
namespace xo {
/** @brief configuration for Logger **/
class LogConfig {
public:
using uint32_t = std::uint32_t;
LogConfig();
static LogConfig & instance() { return s_instance; }
/** number of spaces per nesting level. 0 for no nesting **/
uint32_t indent_width = 2;
/** enable explicit nesting count **/
bool nesting_count_enabled = true;
private:
static LogConfig s_instance;
};
} /*namespace xo*/
/* end LogConfig.hpp */