added spdlog namespace when calling make_unique

This commit is contained in:
gabime 2018-09-02 01:27:28 +03:00
parent 00acb8ba41
commit 3698c1d2f1

View File

@ -592,141 +592,141 @@ private:
{
// logger name
case 'n':
formatters_.push_back(make_unique<details::name_formatter>());
formatters_.push_back(spdlog::make_unique<details::name_formatter>());
break;
case 'l':
formatters_.push_back(make_unique<details::level_formatter>());
formatters_.push_back(spdlog::make_unique<details::level_formatter>());
break;
case 'L':
formatters_.push_back(make_unique<details::short_level_formatter>());
formatters_.push_back(spdlog::make_unique<details::short_level_formatter>());
break;
case ('t'):
formatters_.push_back(make_unique<details::t_formatter>());
formatters_.push_back(spdlog::make_unique<details::t_formatter>());
break;
case ('v'):
formatters_.push_back(make_unique<details::v_formatter>());
formatters_.push_back(spdlog::make_unique<details::v_formatter>());
break;
case ('a'):
formatters_.push_back(make_unique<details::a_formatter>());
formatters_.push_back(spdlog::make_unique<details::a_formatter>());
break;
case ('A'):
formatters_.push_back(make_unique<details::A_formatter>());
formatters_.push_back(spdlog::make_unique<details::A_formatter>());
break;
case ('b'):
case ('h'):
formatters_.push_back(make_unique<details::b_formatter>());
formatters_.push_back(spdlog::make_unique<details::b_formatter>());
break;
case ('B'):
formatters_.push_back(make_unique<details::B_formatter>());
formatters_.push_back(spdlog::make_unique<details::B_formatter>());
break;
case ('c'):
formatters_.push_back(make_unique<details::c_formatter>());
formatters_.push_back(spdlog::make_unique<details::c_formatter>());
break;
case ('C'):
formatters_.push_back(make_unique<details::C_formatter>());
formatters_.push_back(spdlog::make_unique<details::C_formatter>());
break;
case ('Y'):
formatters_.push_back(make_unique<details::Y_formatter>());
formatters_.push_back(spdlog::make_unique<details::Y_formatter>());
break;
case ('D'):
case ('x'):
formatters_.push_back(make_unique<details::D_formatter>());
formatters_.push_back(spdlog::make_unique<details::D_formatter>());
break;
case ('m'):
formatters_.push_back(make_unique<details::m_formatter>());
formatters_.push_back(spdlog::make_unique<details::m_formatter>());
break;
case ('d'):
formatters_.push_back(make_unique<details::d_formatter>());
formatters_.push_back(spdlog::make_unique<details::d_formatter>());
break;
case ('H'):
formatters_.push_back(make_unique<details::H_formatter>());
formatters_.push_back(spdlog::make_unique<details::H_formatter>());
break;
case ('I'):
formatters_.push_back(make_unique<details::I_formatter>());
formatters_.push_back(spdlog::make_unique<details::I_formatter>());
break;
case ('M'):
formatters_.push_back(make_unique<details::M_formatter>());
formatters_.push_back(spdlog::make_unique<details::M_formatter>());
break;
case ('S'):
formatters_.push_back(make_unique<details::S_formatter>());
formatters_.push_back(spdlog::make_unique<details::S_formatter>());
break;
case ('e'):
formatters_.push_back(make_unique<details::e_formatter>());
formatters_.push_back(spdlog::make_unique<details::e_formatter>());
break;
case ('f'):
formatters_.push_back(make_unique<details::f_formatter>());
formatters_.push_back(spdlog::make_unique<details::f_formatter>());
break;
case ('F'):
formatters_.push_back(make_unique<details::F_formatter>());
formatters_.push_back(spdlog::make_unique<details::F_formatter>());
break;
case ('E'):
formatters_.push_back(make_unique<details::E_formatter>());
formatters_.push_back(spdlog::make_unique<details::E_formatter>());
break;
case ('p'):
formatters_.push_back(make_unique<details::p_formatter>());
formatters_.push_back(spdlog::make_unique<details::p_formatter>());
break;
case ('r'):
formatters_.push_back(make_unique<details::r_formatter>());
formatters_.push_back(spdlog::make_unique<details::r_formatter>());
break;
case ('R'):
formatters_.push_back(make_unique<details::R_formatter>());
formatters_.push_back(spdlog::make_unique<details::R_formatter>());
break;
case ('T'):
case ('X'):
formatters_.push_back(make_unique<details::T_formatter>());
formatters_.push_back(spdlog::make_unique<details::T_formatter>());
break;
case ('z'):
formatters_.push_back(make_unique<details::z_formatter>());
formatters_.push_back(spdlog::make_unique<details::z_formatter>());
break;
case ('+'):
formatters_.push_back(make_unique<details::full_formatter>());
formatters_.push_back(spdlog::make_unique<details::full_formatter>());
break;
case ('P'):
formatters_.push_back(make_unique<details::pid_formatter>());
formatters_.push_back(spdlog::make_unique<details::pid_formatter>());
break;
case ('i'):
formatters_.push_back(make_unique<details::i_formatter>());
formatters_.push_back(spdlog::make_unique<details::i_formatter>());
break;
case ('^'):
formatters_.push_back(make_unique<details::color_start_formatter>());
formatters_.push_back(spdlog::make_unique<details::color_start_formatter>());
break;
case ('$'):
formatters_.push_back(make_unique<details::color_stop_formatter>());
formatters_.push_back(spdlog::make_unique<details::color_stop_formatter>());
break;
default: // Unknown flag appears as is
formatters_.push_back(make_unique<details::ch_formatter>('%'));
formatters_.push_back(make_unique<details::ch_formatter>(flag));
formatters_.push_back(spdlog::make_unique<details::ch_formatter>('%'));
formatters_.push_back(spdlog::make_unique<details::ch_formatter>(flag));
break;
}
}