 |
TEMU
4.4
The Terma Emulator
|
Go to the documentation of this file.
10 #define TEMU_LOGGING_H
12 #include "temu-c/Support/Attributes.h"
13 #include "temu-c/Support/Objsys.h"
145 __attribute__((
noreturn))
__attribute__((format(printf, 2, 3)));
153 __attribute__((format(printf, 2, 3)));
161 __attribute__((format(printf, 2, 3)));
169 __attribute__((format(printf, 2, 3)));
177 __attribute__((format(printf, 2, 3)));
189 __attribute__((format(printf, 2, 3)));
193 temu_logDebug(
const void *Obj TEMU_UNUSED,
const char *Msg TEMU_UNUSED, ...)
200 #define temu_logDebug temu_logDebugFunc
244 #define teLC_FirstUserCat 8
246 #define teLC_DefaultCat 0
247 #define teLC_SimCat 1
248 #define teLC_TargetCat 2
249 #define teLC_ConfigCat 3
273 __attribute__((format(printf, 4, 5)));
283 __attribute__((
noreturn))
__attribute__((format(printf, 2, 3)));
292 __attribute__((format(printf, 2, 3)));
301 __attribute__((format(printf, 2, 3)));
310 __attribute__((format(printf, 2, 3)));
321 __attribute__((
noreturn))
__attribute__((format(printf, 2, 3)));
330 __attribute__((format(printf, 2, 3)));
339 __attribute__((format(printf, 2, 3)));
349 __attribute__((format(printf, 2, 3)));
358 __attribute__((
noreturn))
__attribute__((format(printf, 2, 3)));
367 __attribute__((format(printf, 2, 3)));
376 __attribute__((format(printf, 2, 3)));
386 __attribute__((format(printf, 2, 3)));
395 TEMU_API temu_LogLevel temu_objectGetLogLevel(
void *Obj,
unsigned Category);
@ teLL_Debug
Debug.
Definition: Logging.h:69
TEMU_API void temu_logSetAdvancedFunc(void(*LogFunc)(void *, temu_Object *, unsigned, temu_LogLevel, const char *), void *UserData)
TEMU_API void temu_logToCategory(const void *Obj, unsigned Category, temu_LogLevel Severity, const char *Msg,...) __attribute__((format(printf
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logConfigInfo(const void *Obj, const char *Msg,...) __attribute__((format(printf
@ teLL_Fatal
Fatal, emulator cannot keep on running.
Definition: Logging.h:64
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logTargetError(const void *Obj, const char *Msg,...) __attribute__((format(printf
@ teLL_Info
Normal messages.
Definition: Logging.h:67
@ teLL_Trace
Trace messages, not compiled away.
Definition: Logging.h:68
TEMU_API void temu_logFatal(const void *Obj, const char *Msg,...) __attribute__((noreturn)) __attribute__((format(printf
TEMU_API void temu_logSetDefaultFile(FILE *FP)
TEMU_API void temu_objectSetLogLevel(void *Obj, unsigned Category, temu_LogLevel LogLevel)
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logTargetInfo(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logInfo(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void TEMU_API void TEMU_API void temu_logWarning(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void temu_logSetLevel(temu_LogLevel LogLevel)
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logDebugFunc(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void TEMU_API void TEMU_API void temu_logSimError(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logConfigWarning(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void temu_logSetFunc(void(*LogFunc)(const char *))
@ teLL_Warning
Warnings.
Definition: Logging.h:66
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logTargetFatal(const void *Obj, const char *Msg,...) __attribute__((noreturn)) __attribute__((format(printf
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logTrace(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logSimInfo(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void temu_logSetSeverity(void *Obj, unsigned Category, temu_LogLevel Severity)
@ teLL_Error
Error happened, in principle critical but up to user.
Definition: Logging.h:65
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logTargetWarning(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void TEMU_API void temu_logError(const void *Obj, const char *Msg,...) __attribute__((format(printf
temu_LogLevel
Definition: Logging.h:63
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logConfigError(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void temu_logSetColour(int Enable)
TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logSimWarning(const void *Obj, const char *Msg,...) __attribute__((format(printf
TEMU_API void TEMU_API void temu_logSimFatal(const void *Obj, const char *Msg,...) __attribute__((noreturn)) __attribute__((format(printf
TEMU_API void temu_logToCategoryVA(const void *Obj, unsigned Category, temu_LogLevel Severity, const char *Msg, va_list Args)
TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void TEMU_API void temu_logConfigFatal(const void *Obj, const char *Msg,...) __attribute__((noreturn)) __attribute__((format(printf