X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Flog.h;h=9fdb8a29adddbde629af3294c8727ed1dcf3bdf6;hb=a02bc9cc6f821a604f6ae4a865b0da8eec4da5a4;hp=05fa9f5752450a8261e9067eea219b7817666c88;hpb=8adff5922376676c2eeb49de1cbab86cc345b887;p=ngircd-alex.git diff --git a/src/ngircd/log.h b/src/ngircd/log.h index 05fa9f57..9fdb8a29 100644 --- a/src/ngircd/log.h +++ b/src/ngircd/log.h @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) + * Copyright (c)2001-2010 Alexander Barton (alex@barton.de) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -8,8 +8,6 @@ * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. * - * $Id: log.h,v 1.16 2005/03/19 18:43:49 fw Exp $ - * * Logging functions (header) */ @@ -35,18 +33,26 @@ #define LOG_snotice 1024 -GLOBAL void Log_Init PARAMS((void )); -GLOBAL void Log_Exit PARAMS((void )); +GLOBAL void Log_Init PARAMS(( bool Daemon_Mode )); +GLOBAL void Log_Exit PARAMS(( void )); + +GLOBAL void Log PARAMS(( int Level, const char *Format, ... )); + +GLOBAL void Log_ServerNotice PARAMS((char UserMode, const char *Format, ...)); -GLOBAL void Log PARAMS((int Level, const char *Format, ... )); +#ifdef DEBUG +GLOBAL void LogDebug PARAMS(( const char *Format, ... )); +#else +static inline void LogDebug PARAMS(( UNUSED const char *Format, ... )){/* Do nothing. The compiler should optimize this out, please ;-) */} +#endif -GLOBAL void Log_Init_Resolver PARAMS((void )); -GLOBAL void Log_Exit_Resolver PARAMS((void )); +GLOBAL void Log_Init_Subprocess PARAMS((char *Name)); +GLOBAL void Log_Exit_Subprocess PARAMS((char *Name)); -GLOBAL void Log_Resolver PARAMS((const int Level, const char *Format, ... )); +GLOBAL void Log_Subprocess PARAMS((const int Level, const char *Format, ...)); #ifdef DEBUG -GLOBAL void Log_InitErrorfile PARAMS((void )); +GLOBAL void Log_InitErrorfile PARAMS(( void )); #endif