aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--router/router.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/router/router.h b/router/router.h
index 6d34cadd..0749ffad 100644
--- a/router/router.h
+++ b/router/router.h
@@ -168,15 +168,24 @@ extern FILE *LogFile;
#define TRACE(...) do { \
if(LogLevel >= LogLevel_Trace) \
+ { \
fprintf(LogFile, "AL Router (II): " __VA_ARGS__); \
+ fflush(LogFile); \
+ } \
} while(0)
#define WARN(...) do { \
if(LogLevel >= LogLevel_Warn) \
+ { \
fprintf(LogFile, "AL Router (WW): " __VA_ARGS__); \
+ fflush(LogFile); \
+ } \
} while(0)
#define ERR(...) do { \
if(LogLevel >= LogLevel_Error) \
+ { \
fprintf(LogFile, "AL Router (EE): " __VA_ARGS__); \
+ fflush(LogFile); \
+ } \
} while(0)
#endif /* ROUTER_ROUTER_H */