| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef _LOG_H
- #define _LOG_H
- #define LOGLINEMAX 867
- #define LOGLINELEN LOGLINEMAX + 1
- /* Logfile display flags
- */
- #define LOG_MSGS BIT0 /* m msgs/notice/ctcps */
- #define LOG_PUBLIC BIT1 /* p public msg/notice/ctcps */
- #define LOG_JOIN BIT2 /* j channel joins/parts/etc */
- #define LOG_MODES BIT3 /* k mode changes/kicks/bans */
- #define LOG_CMDS BIT4 /* c user dcc or msg commands */
- #define LOG_MISC BIT5 /* o other misc bot things */
- #define LOG_BOTS BIT6 /* b bot notices */
- #define LOG_RAW BIT7 /* r raw server stuff coming in */
- #define LOG_FILES BIT8 /* x file transfer commands and stats */
- #define LOG_ERRORS BIT9 /* e misc errors */
- #define LOG_ERROR LOG_ERRORS
- #define LOG_GETIN BIT10 /* g op system. (Getin) */
- #define LOG_WARN BIT11 /* u warnings */
- #define LOG_WARNING LOG_WARN
- #define LOG_SERV BIT17 /* s server information */
- #define LOG_DEBUG BIT18 /* d debug */
- #define LOG_WALL BIT19 /* w wallops */
- #define LOG_SRVOUT BIT20 /* v server output */
- #define LOG_BOTNET BIT21 /* t botnet traffic */
- #define LOG_BOTSHARE BIT22 /* h share traffic */
- #define LOG_ALL 0xfffffff /* (dump to all logfiles) */
- void logidx(int, const char *, ...) __attribute__((format(printf, 2, 3)));
- void putlog (int, const char *, const char *, ...) __attribute__((format(printf, 3, 4)));
- int logmodes(const char *);
- char *masktype(int);
- char *maskname(int);
- void irc_log(struct chanset_t *, const char *, ...) __attribute__((format(printf, 2, 3)));
- void logfile(int type, const char *msg);
- extern int conmask;
- extern bool debug_output;
- #endif /* !_LOG_H */
|