gwnavruntime/basesystem/logger.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_Logger_H
9 #define Navigation_Logger_H
21 LogWrapper(LogMessageId
id) : m_id(id) {}
23 void Print(
const char* fmt, ...) const KY_LOG_VAARG_ATTRIBUTE(2,3);
31 #define KY_LOG_BIG_TITLE_BEGIN(prefix, title) \
32 prefix << "==============================================================\n" \
33 << prefix << "======== " << title << "\n\n"
35 #define KY_LOG_BIG_TITLE_END(prefix, title) \
36 prefix << "======== " << title << "\n" \
37 << prefix << "==============================================================\n\n"
39 #define KY_LOG_SMALL_TITLE_BEGIN(prefix, title) \
40 prefix << "------------------------------------------------------\n" \
41 << prefix << "---- " << title << "\n"
43 #define KY_LOG_SMALL_TITLE_END(prefix, title) \
44 prefix << "---- " << title << "\n" \
45 << prefix << "------------------------------------------------------\n\n"
50 #ifndef KY_NO_LOG_OUTPUT
58 #define KY_LOG_TEXT(args) KY_MACRO_START Kaim::LogWrapper(Kaim::Log_Message).Print args; KY_MACRO_END
59 #define KY_LOG_MESSAGE(args) KY_MACRO_START Kaim::LogWrapper(Kaim::Log_Message).Print KY_LOG_SUFFIX(args); KY_MACRO_END
60 #define KY_LOG_WARNING(args) KY_MACRO_START Kaim::LogWrapper(Kaim::Log_Warning).Print KY_LOG_SUFFIX(args); KY_MACRO_END
61 #define KY_LOG_ERROR(args) KY_MACRO_START Kaim::LogWrapper(Kaim::Log_Error).Print KY_LOG_SUFFIX(args); KY_MACRO_END
65 #define KY_LOG_OUTPUT(id, args) KY_MACRO_START Kaim::LogWrapper(id).Print args; KY_MACRO_END
68 #define KY_LOG_TEXT_IF(condition, args) KY_MACRO_START if (condition) { KY_LOG_TEXT(args); } KY_MACRO_END
69 #define KY_LOG_MESSAGE_IF(condition, args) KY_MACRO_START if (condition) { KY_LOG_MESSAGE(args); } KY_MACRO_END
70 #define KY_LOG_WARNING_IF(condition, args) KY_MACRO_START if (condition) { KY_LOG_WARNING(args); } KY_MACRO_END
71 #define KY_LOG_ERROR_IF(condition, args) KY_MACRO_START if (condition) { KY_LOG_ERROR(args); } KY_MACRO_END
72 #define KY_LOG_OUTPUT_IF(condition, id, args) KY_MACRO_START if (condition) { KY_LOG_OUTPUT(id, args); } KY_MACRO_END
74 #define KY_LOG_TEXT(args) ((void)0)
75 #define KY_LOG_MESSAGE(args) ((void)0)
76 #define KY_LOG_WARNING(args) ((void)0)
77 #define KY_LOG_ERROR(args) ((void)0)
78 #define KY_LOG_OUTPUT(args, id) ((void)0)
80 #define KY_LOG_TEXT_IF(condition, args) ((void)0)
81 #define KY_LOG_MESSAGE_IF(condition, args) ((void)0)
82 #define KY_LOG_WARNING_IF(condition, args) ((void)0)
83 #define KY_LOG_ERROR_IF(condition, args) ((void)0)
84 #define KY_LOG_OUTPUT_IF(condition, id, args) ((void)0)
89 #endif //Navigation_Logger_H
Definition: gamekitcrowddispersion.h:20