#include "IoContext.h"
#include "Define.h"
#include "LogCommon.h"
#include "StringFormat.h"
#include <unordered_map>
#include <vector>
#include <memory>
Go to the source code of this file.
|
| #define | LOGGER_ROOT "root" |
| |
| #define | sLog Log::instance() |
| |
| #define | LOG_MESSAGE_BODY(filterType__, level__, ...) |
| |
| #define | LOG_FATAL(filterType__, ...) LOG_MESSAGE_BODY(filterType__, LogLevel::LOG_LEVEL_FATAL, __VA_ARGS__) |
| |
| #define | LOG_ERROR(filterType__, ...) LOG_MESSAGE_BODY(filterType__, LogLevel::LOG_LEVEL_ERROR, __VA_ARGS__) |
| |
| #define | LOG_WARN(filterType__, ...) LOG_MESSAGE_BODY(filterType__, LogLevel::LOG_LEVEL_WARN, __VA_ARGS__) |
| |
| #define | LOG_INFO(filterType__, ...) LOG_MESSAGE_BODY(filterType__, LogLevel::LOG_LEVEL_INFO, __VA_ARGS__) |
| |
| #define | LOG_DEBUG(filterType__, ...) LOG_MESSAGE_BODY(filterType__, LogLevel::LOG_LEVEL_DEBUG, __VA_ARGS__) |
| |
| #define | LOG_TRACE(filterType__, ...) LOG_MESSAGE_BODY(filterType__, LogLevel::LOG_LEVEL_TRACE, __VA_ARGS__) |
| |
| #define | LOG_GM(accountId__, ...) sLog->outCommand(accountId__, __VA_ARGS__) |
| |
◆ LOG_DEBUG
◆ LOG_ERROR
◆ LOG_FATAL
◆ LOG_GM
| #define LOG_GM |
( |
|
accountId__, |
|
|
|
... |
|
) |
| sLog->outCommand(accountId__, __VA_ARGS__) |
◆ LOG_INFO
◆ LOG_MESSAGE_BODY
| #define LOG_MESSAGE_BODY |
( |
|
filterType__, |
|
|
|
level__, |
|
|
|
... |
|
) |
| |
Value: do \
{ \
if (
sLog->ShouldLog(filterType__, level__)) \
sLog->outMessage(filterType__, level__, __VA_ARGS__); \
} while (0)
#define sLog
Definition Log.h:127
134 { \
135 if (
sLog->ShouldLog(filterType__, level__)) \
136 sLog->outMessage(filterType__, level__, __VA_ARGS__); \
137 } while (0)
◆ LOG_TRACE
◆ LOG_WARN
◆ LOGGER_ROOT
| #define LOGGER_ROOT "root" |
◆ sLog
◆ AppenderCreatorFn
◆ CreateAppender()
template<class AppenderImpl >
45{
46 return new AppenderImpl(id, name, level, flags, extraArgs);
47}