2 * ngIRCd -- The Next Generation IRC Daemon
3 * Copyright (c)2001-2012 Alexander Barton (alex@barton.de)
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 * Please read the file COPYING, README and AUTHORS for more information.
17 * Logging functions (header)
27 # define LOG_WARNING 4
33 #define LOG_snotice 1024
35 GLOBAL void Log_Init PARAMS(( bool Daemon_Mode ));
36 GLOBAL void Log_Exit PARAMS(( void ));
38 GLOBAL void Log PARAMS(( int Level, const char *Format, ... ));
39 GLOBAL void Log_ReInit PARAMS((void));
41 GLOBAL void Log_ServerNotice PARAMS((char UserMode, const char *Format, ...));
44 GLOBAL void LogDebug PARAMS(( const char *Format, ... ));
46 static inline void LogDebug PARAMS(( UNUSED const char *Format, ... )){/* Do nothing. The compiler should optimize this out, please ;-) */}
49 GLOBAL void Log_Init_Subprocess PARAMS((char *Name));
50 GLOBAL void Log_Exit_Subprocess PARAMS((char *Name));
52 GLOBAL void Log_Subprocess PARAMS((const int Level, const char *Format, ...));
55 GLOBAL void Log_InitErrorfile PARAMS(( void ));