X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Flog.h;h=0ac4c4d9a4e85ad648abef9e9e20e16f3aab0247;hb=HEAD;hp=85f0640c1f5d2408f9260e5e6a043c539c609e48;hpb=c2f60abe55b5a8d320a27df0ce41790fa1141081;p=ngircd-alex.git diff --git a/src/ngircd/log.h b/src/ngircd/log.h index 85f0640c..0ac4c4d9 100644 --- a/src/ngircd/log.h +++ b/src/ngircd/log.h @@ -1,25 +1,23 @@ /* * 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) * - * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen - * der GNU General Public License (GPL), wie von der Free Software Foundation - * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2 - * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version. - * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste - * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. - * - * $Id: log.h,v 1.12 2002/05/27 13:09:27 alex Exp $ - * - * log.h: Logging-Funktionen (Header) + * 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. */ - #ifndef __log_h__ #define __log_h__ +/** + * @file + * Logging functions (header) + */ -#ifdef USE_SYSLOG +#ifdef SYSLOG # include #else # define LOG_EMERG 0 @@ -32,23 +30,25 @@ # define LOG_DEBUG 7 #endif - #define LOG_snotice 1024 +GLOBAL void Log_Init PARAMS(( bool Syslog_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_InitErrorfile PARAMS((VOID )); -GLOBAL VOID Log PARAMS((INT Level, CONST CHAR *Format, ... )); +GLOBAL void Log_ServerNotice PARAMS((char UserMode, const char *Format, ...)); -GLOBAL VOID Log_Init_Resolver PARAMS((VOID )); -GLOBAL VOID Log_Exit_Resolver PARAMS((VOID )); +GLOBAL void LogDebug PARAMS(( const char *Format, ... )); -GLOBAL VOID Log_Resolver PARAMS((CONST INT Level, CONST CHAR *Format, ... )); +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, ...)); -#endif +GLOBAL void Log_InitErrorfile PARAMS(( void )); +#endif /* -eof- */