#include <mochi_core/mochi_config.h>
#include <array>
#include <cstdarg>
#include <functional>
#include <mutex>
#include <string>
Go to the source code of this file.
◆ MOCHI_LOG
Value:
#define MOCHI_LOG_IMPL(channel, file, line,...)
Definition at line 41 of file log.h.
◆ MOCHI_LOG_ERROR
| #define MOCHI_LOG_ERROR |
( |
| ... | ) |
|
Value:
Definition at line 44 of file log.h.
◆ MOCHI_LOG_ERROR_ONCE
| #define MOCHI_LOG_ERROR_ONCE |
( |
| ... | ) |
|
Value:
#define MOCHI_LOG_ONCE_HELPER(channel,...)
Definition at line 59 of file log.h.
◆ MOCHI_LOG_IMPL
| #define MOCHI_LOG_IMPL |
( |
| channel, |
|
|
| file, |
|
|
| line, |
|
|
| ... ) |
Value:
} else { \
}
bool IsLogChannelEnabled(LogChannel channel)
std::string Format(char const *format,...)
Definition at line 89 of file log.h.
◆ MOCHI_LOG_ONCE
| #define MOCHI_LOG_ONCE |
( |
| ... | ) |
|
Value:
Definition at line 56 of file log.h.
◆ MOCHI_LOG_ONCE_HELPER
| #define MOCHI_LOG_ONCE_HELPER |
( |
| channel, |
|
|
| ... ) |
Value:do { \
[[maybe_unused]] static bool logged_##__LINE__ = [&]() { \
MOCHI_LOG_IMPL(channel, __FILE__, __LINE__, __VA_ARGS__); \
return true; \
}(); \
} while (0)
Definition at line 49 of file log.h.
◆ MOCHI_LOG_TO
| #define MOCHI_LOG_TO |
( |
| channel, |
|
|
| ... ) |
Value:
Definition at line 45 of file log.h.
◆ MOCHI_LOG_VERBOSE
| #define MOCHI_LOG_VERBOSE |
( |
| ... | ) |
|
Value:
Definition at line 42 of file log.h.
◆ MOCHI_LOG_VERBOSE_ONCE
| #define MOCHI_LOG_VERBOSE_ONCE |
( |
| ... | ) |
|
Value:
Definition at line 57 of file log.h.
◆ MOCHI_LOG_WARNING
| #define MOCHI_LOG_WARNING |
( |
| ... | ) |
|
Value:
Definition at line 43 of file log.h.
◆ MOCHI_LOG_WARNING_ONCE
| #define MOCHI_LOG_WARNING_ONCE |
( |
| ... | ) |
|
Value:
Definition at line 58 of file log.h.