GIRAFFE Pipeline Reference Manual

gimessages.c
1 /*
2  * This file is part of the GIRAFFE Pipeline
3  * Copyright (C) 2002-2019 European Southern Observatory
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  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifdef HAVE_CONFIG_H
21 # include <config.h>
22 #endif
23 
24 #include <cxmessages.h>
25 
26 #include "gimessages.h"
27 
28 
59 void gi_error(const cxchar *format, ...)
60 {
61 
62  va_list args;
63 
64  va_start(args, format);
65  cx_logv(CX_LOG_DOMAIN, CX_LOG_LEVEL_ERROR, format, args);
66  va_end(args);
67 
68  return;
69 }
70 
91 void gi_critical(const cxchar *format, ...)
92 {
93  va_list args;
94 
95  va_start(args, format);
96  cx_logv(CX_LOG_DOMAIN, CX_LOG_LEVEL_CRITICAL, format, args);
97  va_end(args);
98 
99  return;
100 }
101 
102 
119 void gi_warning(const cxchar *format, ...)
120 {
121  va_list args;
122 
123  va_start(args, format);
124  cx_logv(CX_LOG_DOMAIN, CX_LOG_LEVEL_WARNING, format, args);
125  va_end(args);
126 
127  return;
128 }
129 
130 
146 void gi_message(const cxchar *format, ...)
147 {
148  va_list args;
149 
150  va_start(args, format);
151  cx_logv(CX_LOG_DOMAIN, CX_LOG_LEVEL_MESSAGE, format, args);
152  va_end(args);
153 
154  return;
155 }
void gi_warning(const cxchar *format,...)
Log a warning.
Definition: gimessages.c:119
void gi_error(const cxchar *format,...)
Log an error message.
Definition: gimessages.c:59
void gi_message(const cxchar *format,...)
Log a normal message.
Definition: gimessages.c:146
void gi_critical(const cxchar *format,...)
Log a "critical" warning.
Definition: gimessages.c:91

This file is part of the GIRAFFE Pipeline Reference Manual 2.16.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Dec 15 2022 21:18:51 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2004