GIRAFFE Pipeline Reference Manual

gimessages.c
1 /* $Id$
2  *
3  * This file is part of the GIRAFFE Pipeline
4  * Copyright (C) 2002-2006 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /*
22  * $Author$
23  * $Date$
24  * $Revision$
25  * $Name$
26  */
27 
28 #ifdef HAVE_CONFIG_H
29 # include <config.h>
30 #endif
31 
32 #include <cxmessages.h>
33 
34 #include "gimessages.h"
35 
36 
67 void gi_error(const cxchar *format, ...)
68 {
69 
70  va_list args;
71 
72  va_start(args, format);
73  cx_logv(CX_LOG_DOMAIN, CX_LOG_LEVEL_ERROR, format, args);
74  va_end(args);
75 
76  return;
77 }
78 
99 void gi_critical(const cxchar *format, ...)
100 {
101  va_list args;
102 
103  va_start(args, format);
104  cx_logv(CX_LOG_DOMAIN, CX_LOG_LEVEL_CRITICAL, format, args);
105  va_end(args);
106 
107  return;
108 }
109 
110 
127 void gi_warning(const cxchar *format, ...)
128 {
129  va_list args;
130 
131  va_start(args, format);
132  cx_logv(CX_LOG_DOMAIN, CX_LOG_LEVEL_WARNING, format, args);
133  va_end(args);
134 
135  return;
136 }
137 
138 
154 void gi_message(const cxchar *format, ...)
155 {
156  va_list args;
157 
158  va_start(args, format);
159  cx_logv(CX_LOG_DOMAIN, CX_LOG_LEVEL_MESSAGE, format, args);
160  va_end(args);
161 
162  return;
163 }
void gi_warning(const cxchar *format,...)
Log a warning.
Definition: gimessages.c:127
void gi_critical(const cxchar *format,...)
Log a "critical" warning.
Definition: gimessages.c:99
void gi_error(const cxchar *format,...)
Log an error message.
Definition: gimessages.c:67
void gi_message(const cxchar *format,...)
Log a normal message.
Definition: gimessages.c:154

This file is part of the GIRAFFE Pipeline Reference Manual 2.14.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Wed Mar 11 2015 13:19:41 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2004