2 * ngIRCd -- The Next Generation IRC Daemon
3 * Copyright (c)2001,2002 by 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.
11 * $Id: log.h,v 1.20 2006/08/05 09:16:21 fw Exp $
13 * Logging functions (header)
28 # define LOG_WARNING 4
35 #define LOG_snotice 1024
38 GLOBAL void Log_Init PARAMS(( bool Daemon_Mode ));
39 GLOBAL void Log_Exit PARAMS(( void ));
41 GLOBAL void Log PARAMS(( int Level, 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 ;-) */}
50 GLOBAL void Log_Init_Resolver PARAMS(( void ));
51 GLOBAL void Log_Exit_Resolver PARAMS(( void ));
53 GLOBAL void Log_Resolver PARAMS(( const int Level, const char *Format, ... ));
56 GLOBAL void Log_InitErrorfile PARAMS(( void ));