blob: c5944d9999afb3ad003117630eea370b7295dbf0 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001#ifndef LPC_DEBUG_MESSAGE_H_
2#define LPC_DEBUG_MESSAGE_H_ 1
3
4/* Definitions and macros for the debug_message() */
5
6#define DMSG_DEFAULT 0 /* log to stdout and .debug.log */
7#define DMSG_STDOUT (1 << 0) /* log to stdout */
8#define DMSG_STDERR (1 << 1) /* log to stderr */
9#define DMSG_LOGFILE (1 << 2) /* log to .debug.log */
10
11#define DMSG_STAMP (1 << 3) /* Prepend the timestamp */
12
13/* Derived macros */
14
15#define DMSG_TARGET (DMSG_STDOUT|DMSG_STDERR|DMSG_LOGFILE)
16 /* Mask for all target bitflags */
17
18#endif /* LPC_DEBUG_MESSAGE_H_ */