/* @file log_config.hpp */ #pragma once #include "function.hpp" #include namespace xo { /* Tag here b/c we want header-only library */ template struct log_config_impl { /* spaces per indent level */ static std::uint32_t indent_width; /* display style for function names. FS_Simple|FS_Pretty|FS_Streamlined */ static function_style style; /* if true, append [file:line] to output */ static bool location_enabled; /* when .location_enabled, write [file:line] starting this many chars from left margin */ static std::uint32_t location_tab; }; /*log_config_impl*/ template std::uint32_t log_config_impl::indent_width = 1; template function_style log_config_impl::style = FS_Streamlined; template bool log_config_impl::location_enabled = true; template std::uint32_t log_config_impl::location_tab = 80; using log_config = log_config_impl; } /*namespace xo*/ /* end log_config.hpp */