cpl_log.h

Go to the documentation of this file.
00001 /*
00002  * $Id: cpl_log.h 5003 2008-09-26 11:01:51Z henningw $
00003  *
00004  * Copyright (C) 2001-2003 FhG Fokus
00005  *
00006  * This file is part of Kamailio, a free SIP server.
00007  *
00008  * Kamailio is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version
00012  *
00013  * Kamailio is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  *
00023  * History:
00024  * -------
00025  * 2003-09-22: created (bogdan)
00026  *
00027  */
00028 
00029 
00030 #ifndef _CPL_LOG_H_
00031 #define _CPL_LOG_H_
00032 
00033 #include <stdarg.h>
00034 #include "../../str.h"
00035 
00036 
00037 #define MAX_LOG_NR    64
00038 
00039 #define ERR     "Error: "
00040 #define ERR_LEN (sizeof(ERR)-1)
00041 #define WARN    "Warning: "
00042 #define WARN_LEN (sizeof(WARN)-1)
00043 #define NOTE     "Notice: "
00044 #define NOTE_LEN (sizeof(NOTE)-1)
00045 
00046 #define LF       "\n"
00047 #define LF_LEN   (1)
00048 
00049 
00050 void reset_logs(void);
00051 
00052 void append_log( int nr, ...);
00053 
00054 void compile_logs( str *log);
00055 
00056 #endif
00057 

Generated on Mon May 21 18:00:25 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6