#include "Define.h"
#include "AsioHacksFwd.h"
#include "LogCommon.h"
#include "StringFormat.h"
#include <memory>
#include <unordered_map>
#include <vector>
Go to the source code of this file.
|
| #define | LOGGER_ROOT "root" |
| |
| #define | sLog Log::instance() |
| |
| #define | TC_LOG_MESSAGE_BODY_CORE(filterType__, level__, message__, ...) |
| |
| #define | TC_LOG_MESSAGE_BODY(filterType__, level__, message__, ...) |
| |
| #define | TC_LOG_TRACE(filterType__, message__, ...) TC_LOG_MESSAGE_BODY(filterType__, LOG_LEVEL_TRACE, message__, ## __VA_ARGS__) |
| |
| #define | TC_LOG_DEBUG(filterType__, message__, ...) TC_LOG_MESSAGE_BODY(filterType__, LOG_LEVEL_DEBUG, message__, ## __VA_ARGS__) |
| |
| #define | TC_LOG_INFO(filterType__, message__, ...) TC_LOG_MESSAGE_BODY(filterType__, LOG_LEVEL_INFO, message__, ## __VA_ARGS__) |
| |
| #define | TC_LOG_WARN(filterType__, message__, ...) TC_LOG_MESSAGE_BODY(filterType__, LOG_LEVEL_WARN, message__, ## __VA_ARGS__) |
| |
| #define | TC_LOG_ERROR(filterType__, message__, ...) TC_LOG_MESSAGE_BODY(filterType__, LOG_LEVEL_ERROR, message__, ## __VA_ARGS__) |
| |
| #define | TC_LOG_FATAL(filterType__, message__, ...) TC_LOG_MESSAGE_BODY(filterType__, LOG_LEVEL_FATAL, message__, ## __VA_ARGS__) |
| |
◆ LOGGER_ROOT
| #define LOGGER_ROOT "root" |
Definition at line 41 of file Log.h.
◆ sLog
◆ TC_LOG_DEBUG
◆ TC_LOG_ERROR
◆ TC_LOG_FATAL
◆ TC_LOG_INFO
◆ TC_LOG_MESSAGE_BODY
| #define TC_LOG_MESSAGE_BODY |
( |
|
filterType__, |
|
|
|
level__, |
|
|
|
message__, |
|
|
|
... |
|
) |
| |
Value: __pragma(warning(push)) \
__pragma(warning(disable:4127)) \
__pragma(warning(pop))
#define TC_LOG_MESSAGE_BODY_CORE(filterType__, level__, message__,...)
Definition at line 171 of file Log.h.
◆ TC_LOG_MESSAGE_BODY_CORE
| #define TC_LOG_MESSAGE_BODY_CORE |
( |
|
filterType__, |
|
|
|
level__, |
|
|
|
message__, |
|
|
|
... |
|
) |
| |
Value: do { \
} while (0)
static constexpr std::string_view make_string_view(StringOrStringView const &stringOrStringView)
Logger const * GetEnabledLogger(std::string_view type, LogLevel level) const noexcept
void OutMessageTo(Logger const *logger, std::string_view filter, LogLevel level, Trinity::FormatString< Args... > fmt, Args &&... args) noexcept
static consteval Trinity::FormatStringView make_format_string_view(char const(&chars)[CharArraySize])
Definition at line 158 of file Log.h.
◆ TC_LOG_TRACE
◆ TC_LOG_WARN
◆ AppenderCreatorFn
Definition at line 43 of file Log.h.
◆ CreateAppender()
template<class AppenderImpl >
Definition at line 46 of file Log.h.