mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 18:30:39 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 05f566ad07 | |||
| c7a8d796fc | |||
| 77163ec137 |
+14
-4
@@ -454,9 +454,19 @@ void OutF(
|
|||||||
}
|
}
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#define OutF(ls, debug_level, log_category, file, func, line, formatStr, ...) \
|
template<typename... Args>
|
||||||
do { \
|
inline void OutF(
|
||||||
ls.Out(debug_level, log_category, file, func, line, fmt::format(formatStr, ##__VA_ARGS__).c_str()); \
|
EQEmuLogSys& ls,
|
||||||
} while(0)
|
Logs::DebugLevel debug_level,
|
||||||
|
uint16 log_category,
|
||||||
|
const char* file,
|
||||||
|
const char* func,
|
||||||
|
int line,
|
||||||
|
fmt::format_string<Args...> fmt_str,
|
||||||
|
Args&&... args
|
||||||
|
) {
|
||||||
|
std::string formatted = fmt::format(fmt_str, std::forward<Args>(args)...);
|
||||||
|
ls.Out(debug_level, log_category, file, func, line, formatted.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user