mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-16 00:45:48 +08:00
code formatting
This commit is contained in:
parent
9daad800a8
commit
1bdd556d3b
@ -87,7 +87,6 @@ inline void spdlog::logger::log(level::level_enum lvl, const char *msg)
|
|||||||
SPDLOG_CATCH_AND_HANDLE
|
SPDLOG_CATCH_AND_HANDLE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class T, typename std::enable_if<std::is_convertible<T, spdlog::string_view_type>::value, T>::type *>
|
template<class T, typename std::enable_if<std::is_convertible<T, spdlog::string_view_type>::value, T>::type *>
|
||||||
inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
|
inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
|
||||||
{
|
{
|
||||||
@ -103,7 +102,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
|
|||||||
SPDLOG_CATCH_AND_HANDLE
|
SPDLOG_CATCH_AND_HANDLE
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, typename std::enable_if<!std::is_convertible<T, spdlog::string_view_type>::value, T>::type*>
|
template<class T, typename std::enable_if<!std::is_convertible<T, spdlog::string_view_type>::value, T>::type *>
|
||||||
inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
|
inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
|
||||||
{
|
{
|
||||||
if (!should_log(lvl))
|
if (!should_log(lvl))
|
||||||
@ -121,9 +120,6 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
|
|||||||
SPDLOG_CATCH_AND_HANDLE
|
SPDLOG_CATCH_AND_HANDLE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
inline void spdlog::logger::trace(const char *fmt, const Args &... args)
|
inline void spdlog::logger::trace(const char *fmt, const Args &... args)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user