mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-26 23:49:03 +08:00
astyle
This commit is contained in:
parent
7eb41ccf0f
commit
7fe3912f12
@ -218,7 +218,7 @@ inline spdlog::details::async_log_helper::async_log_helper(
|
|||||||
_flush_interval_ms(flush_interval_ms),
|
_flush_interval_ms(flush_interval_ms),
|
||||||
_worker_teardown_cb(worker_teardown_cb)
|
_worker_teardown_cb(worker_teardown_cb)
|
||||||
{
|
{
|
||||||
_worker_thread = std::thread(&async_log_helper::worker_loop, this);
|
_worker_thread = std::thread(&async_log_helper::worker_loop, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send to the worker thread termination message(level=off)
|
// Send to the worker thread termination message(level=off)
|
||||||
|
@ -527,135 +527,135 @@ inline void spdlog::pattern_formatter::handle_flag(char flag)
|
|||||||
{
|
{
|
||||||
// logger name
|
// logger name
|
||||||
case 'n':
|
case 'n':
|
||||||
_formatters.emplace_back(new details::name_formatter());
|
_formatters.emplace_back(new details::name_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'l':
|
case 'l':
|
||||||
_formatters.emplace_back(new details::level_formatter());
|
_formatters.emplace_back(new details::level_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'L':
|
case 'L':
|
||||||
_formatters.emplace_back(new details::short_level_formatter());
|
_formatters.emplace_back(new details::short_level_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('t'):
|
case('t'):
|
||||||
_formatters.emplace_back(new details::t_formatter());
|
_formatters.emplace_back(new details::t_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('v'):
|
case('v'):
|
||||||
_formatters.emplace_back(new details::v_formatter());
|
_formatters.emplace_back(new details::v_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('a'):
|
case('a'):
|
||||||
_formatters.emplace_back(new details::a_formatter());
|
_formatters.emplace_back(new details::a_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('A'):
|
case('A'):
|
||||||
_formatters.emplace_back(new details::A_formatter());
|
_formatters.emplace_back(new details::A_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('b'):
|
case('b'):
|
||||||
case('h'):
|
case('h'):
|
||||||
_formatters.emplace_back(new details::b_formatter());
|
_formatters.emplace_back(new details::b_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('B'):
|
case('B'):
|
||||||
_formatters.emplace_back(new details::B_formatter());
|
_formatters.emplace_back(new details::B_formatter());
|
||||||
break;
|
break;
|
||||||
case('c'):
|
case('c'):
|
||||||
_formatters.emplace_back(new details::c_formatter());
|
_formatters.emplace_back(new details::c_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('C'):
|
case('C'):
|
||||||
_formatters.emplace_back(new details::C_formatter());
|
_formatters.emplace_back(new details::C_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('Y'):
|
case('Y'):
|
||||||
_formatters.emplace_back(new details::Y_formatter());
|
_formatters.emplace_back(new details::Y_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('D'):
|
case('D'):
|
||||||
case('x'):
|
case('x'):
|
||||||
|
|
||||||
_formatters.emplace_back(new details::D_formatter());
|
_formatters.emplace_back(new details::D_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('m'):
|
case('m'):
|
||||||
_formatters.emplace_back(new details::m_formatter());
|
_formatters.emplace_back(new details::m_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('d'):
|
case('d'):
|
||||||
_formatters.emplace_back(new details::d_formatter());
|
_formatters.emplace_back(new details::d_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('H'):
|
case('H'):
|
||||||
_formatters.emplace_back(new details::H_formatter());
|
_formatters.emplace_back(new details::H_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('I'):
|
case('I'):
|
||||||
_formatters.emplace_back(new details::I_formatter());
|
_formatters.emplace_back(new details::I_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('M'):
|
case('M'):
|
||||||
_formatters.emplace_back(new details::M_formatter());
|
_formatters.emplace_back(new details::M_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('S'):
|
case('S'):
|
||||||
_formatters.emplace_back(new details::S_formatter());
|
_formatters.emplace_back(new details::S_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('e'):
|
case('e'):
|
||||||
_formatters.emplace_back(new details::e_formatter());
|
_formatters.emplace_back(new details::e_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('f'):
|
case('f'):
|
||||||
_formatters.emplace_back(new details::f_formatter());
|
_formatters.emplace_back(new details::f_formatter());
|
||||||
break;
|
break;
|
||||||
case('F'):
|
case('F'):
|
||||||
_formatters.emplace_back(new details::F_formatter());
|
_formatters.emplace_back(new details::F_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('E'):
|
case('E'):
|
||||||
_formatters.emplace_back(new details::E_formatter());
|
_formatters.emplace_back(new details::E_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('p'):
|
case('p'):
|
||||||
_formatters.emplace_back(new details::p_formatter());
|
_formatters.emplace_back(new details::p_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('r'):
|
case('r'):
|
||||||
_formatters.emplace_back(new details::r_formatter());
|
_formatters.emplace_back(new details::r_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('R'):
|
case('R'):
|
||||||
_formatters.emplace_back(new details::R_formatter());
|
_formatters.emplace_back(new details::R_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('T'):
|
case('T'):
|
||||||
case('X'):
|
case('X'):
|
||||||
_formatters.emplace_back(new details::T_formatter());
|
_formatters.emplace_back(new details::T_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case('z'):
|
case('z'):
|
||||||
_formatters.emplace_back(new details::z_formatter());
|
_formatters.emplace_back(new details::z_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ('+'):
|
case ('+'):
|
||||||
_formatters.emplace_back(new details::full_formatter());
|
_formatters.emplace_back(new details::full_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ('P'):
|
case ('P'):
|
||||||
_formatters.emplace_back(new details::pid_formatter());
|
_formatters.emplace_back(new details::pid_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
case ('i'):
|
case ('i'):
|
||||||
_formatters.emplace_back(new details::i_formatter());
|
_formatters.emplace_back(new details::i_formatter());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: //Unknown flag appears as is
|
default: //Unknown flag appears as is
|
||||||
_formatters.emplace_back(new details::ch_formatter('%'));
|
_formatters.emplace_back(new details::ch_formatter('%'));
|
||||||
_formatters.emplace_back(new details::ch_formatter(flag));
|
_formatters.emplace_back(new details::ch_formatter(flag));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user