indentlog: refactor: log_config function_name uses color_spec

This commit is contained in:
Roland Conybeare 2023-09-18 12:56:21 -04:00
commit 0c9eb6e2da
4 changed files with 10 additions and 32 deletions

View file

@ -194,9 +194,7 @@ namespace xo {
this->indent(' ');
char ee_label = '\0';
std::uint32_t fn_color = 0;
color_encoding encoding = log_config::encoding;
color_spec fn_color;
/* mnemonic for scope entry/exit */
switch(entryexit) {
@ -232,7 +230,7 @@ namespace xo {
this->ss_ << ' ';
/* scope name - note no trailing newline; expect .preamble()/.postamble() caller to supply */
this->ss_ << function_name(style, color_spec(encoding, fn_color), name1) << name2;
this->ss_ << function_name(style, fn_color, name1) << name2;
} /*entryexit_aux*/
template <typename CharT, typename Traits>