X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Flog.h;h=5222b5d29ba7afb1c34868d2831fcb422de4579e;hp=24c3f88cfdff3b2124952587f1859e873de4905a;hb=25dd193e9b49b38db39cf549f94df4ba11812fe9;hpb=9537542647b014894227de81a59fb063fc0dc3e4 diff --git a/src/ngircd/log.h b/src/ngircd/log.h index 24c3f88c..5222b5d2 100644 --- a/src/ngircd/log.h +++ b/src/ngircd/log.h @@ -1,22 +1,21 @@ /* * 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. - * - * $Id: log.h,v 1.15 2005/02/10 12:49:04 alex Exp $ - * - * Logging functions (header) */ - #ifndef __log_h__ #define __log_h__ +/** + * @file + * Logging functions (header) + */ #ifdef SYSLOG # include @@ -31,26 +30,30 @@ # define LOG_DEBUG 7 #endif - #define LOG_snotice 1024 +GLOBAL void Log_Init PARAMS(( bool Daemon_Mode )); +GLOBAL void Log_Exit PARAMS(( void )); -GLOBAL VOID Log_Init PARAMS((VOID )); -GLOBAL VOID Log_Exit PARAMS((VOID )); +GLOBAL void Log PARAMS(( int Level, const char *Format, ... )); -GLOBAL VOID Log PARAMS((INT Level, CONST CHAR *Format, ... )); - -GLOBAL VOID Log_Init_Resolver PARAMS((VOID )); -GLOBAL VOID Log_Exit_Resolver PARAMS((VOID )); - -GLOBAL VOID Log_Resolver PARAMS((CONST INT Level, CONST CHAR *Format, ... )); +GLOBAL void Log_ServerNotice PARAMS((char UserMode, const char *Format, ...)); #ifdef DEBUG -GLOBAL VOID Log_InitErrorfile PARAMS((VOID )); +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_Subprocess PARAMS((char *Name)); +GLOBAL void Log_Exit_Subprocess PARAMS((char *Name)); +GLOBAL void Log_Subprocess PARAMS((const int Level, const char *Format, ...)); + +#ifdef DEBUG +GLOBAL void Log_InitErrorfile PARAMS(( void )); #endif +#endif /* -eof- */