[BACK]Return to log.h CVS log [TXT][DIR] Up to [local] / ircnowd / src / ngircd

Annotation of ircnowd/src/ngircd/log.h, Revision 1.1

1.1     ! tomglok     1: /*
        !             2:  * ngIRCd -- The Next Generation IRC Daemon
        !             3:  * Copyright (c)2001-2012 Alexander Barton (alex@barton.de)
        !             4:  *
        !             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.
        !            10:  */
        !            11:
        !            12: #ifndef __log_h__
        !            13: #define __log_h__
        !            14:
        !            15: /**
        !            16:  * @file
        !            17:  * Logging functions (header)
        !            18:  */
        !            19:
        !            20: #ifdef SYSLOG
        !            21: #      include <syslog.h>
        !            22: #else
        !            23: #      define LOG_EMERG 0
        !            24: #      define LOG_ALERT 1
        !            25: #      define LOG_CRIT 2
        !            26: #      define LOG_ERR 3
        !            27: #      define LOG_WARNING 4
        !            28: #      define LOG_NOTICE 5
        !            29: #      define LOG_INFO 6
        !            30: #      define LOG_DEBUG 7
        !            31: #endif
        !            32:
        !            33: #define LOG_snotice 1024
        !            34:
        !            35: GLOBAL void Log_Init PARAMS(( bool Daemon_Mode ));
        !            36: GLOBAL void Log_Exit PARAMS(( void ));
        !            37:
        !            38: GLOBAL void Log PARAMS(( int Level, const char *Format, ... ));
        !            39: GLOBAL void Log_ReInit PARAMS((void));
        !            40:
        !            41: GLOBAL void Log_ServerNotice PARAMS((char UserMode, const char *Format, ...));
        !            42:
        !            43: #ifdef DEBUG
        !            44: GLOBAL void LogDebug PARAMS(( const char *Format, ... ));
        !            45: #else
        !            46: static inline void LogDebug PARAMS(( UNUSED const char *Format, ... )){/* Do nothing. The compiler should optimize this out, please ;-) */}
        !            47: #endif
        !            48:
        !            49: GLOBAL void Log_Init_Subprocess PARAMS((char *Name));
        !            50: GLOBAL void Log_Exit_Subprocess PARAMS((char *Name));
        !            51:
        !            52: GLOBAL void Log_Subprocess PARAMS((const int Level, const char *Format, ...));
        !            53:
        !            54: #ifdef DEBUG
        !            55: GLOBAL void Log_InitErrorfile PARAMS(( void ));
        !            56: #endif
        !            57:
        !            58: #endif
        !            59:
        !            60: /* -eof- */

CVSweb