X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Flog.h;h=f582e6c85bcda40f9f7524b286311e4bb5f277f8;hb=27b9d32bf2a851c4acbfdc4d9aa5a55d12c92c10;hp=2dfc4c484764807bdaf293e53d7dde57b8e4b456;hpb=dbea1873731f7a0bd718b6f84b75faa10b83fe66;p=ngircd-alex.git diff --git a/src/ngircd/log.h b/src/ngircd/log.h index 2dfc4c48..f582e6c8 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-2012 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.17 2005/06/24 19:20:56 fw Exp $ - * - * Logging functions (header) */ - #ifndef __log_h__ #define __log_h__ +/** + * @file + * Logging functions (header) + */ #ifdef SYSLOG # include @@ -31,27 +30,31 @@ # 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_ReInit PARAMS((void)); -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_SetDaemonized PARAMS((void)); +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- */