1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-26 08:36:38 +02:00

log { } now uses the new log system and is used for logging to disk,

snomasks, opers, global (remote), ..

For disk logs we currently ignore the sources and log everything.

NOTE: REHASH is untested and will memory leak for sure.
This commit is contained in:
Bram Matthys
2021-08-07 13:02:56 +02:00
parent b8837844fb
commit e59cd278cd
4 changed files with 76 additions and 177 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ typedef enum BanTarget { BAN_TARGET_IP=1, BAN_TARGET_USERIP=2, BAN_TARGET_HOST=3
typedef enum HideIdleTimePolicy { HIDE_IDLE_TIME_NEVER=1, HIDE_IDLE_TIME_ALWAYS=2, HIDE_IDLE_TIME_USERMODE=3, HIDE_IDLE_TIME_OPER_USERMODE=4 } HideIdleTimePolicy;
typedef enum LogDestination { LOG_DEST_SNOMASK=0, LOG_DEST_OPER=1, LOG_DEST_GLOBAL=2, LOG_DEST_CHANNEL=3, LOG_DEST_DISK=4 } LogDestination;
typedef enum LogDestination { LOG_DEST_SNOMASK=0, LOG_DEST_OPER=1, LOG_DEST_GLOBAL=2, LOG_DEST_CHANNEL=3, LOG_DEST_OTHER=4 } LogDestination;
/** The set { } block configuration */
typedef struct Configuration Configuration;
+6 -1
View File
@@ -274,8 +274,13 @@ struct LogSource {
typedef struct Log Log;
struct Log {
Log *prev, *next;
char destination[CHANNELLEN+1];
LogSource *sources;
char destination[CHANNELLEN+1];
char *file;
char *filefmt;
long maxsize;
int type;
int logfd;
};
/*