1 /*
2     Gpredict: Real-time satellite tracking and orbit prediction program
3 
4     Copyright (C)  2001-2017  Alexandru Csete, OZ9AEC.
5 
6     Comments, questions and bugreports should be submitted via
7     http://sourceforge.net/projects/gpredict/
8     More details can be found at the project home page:
9 
10             http://gpredict.oz9aec.net/
11 
12     This program is free software; you can redistribute it and/or modify
13     it under the terms of the GNU General Public License as published by
14     the Free Software Foundation; either version 2 of the License, or
15     (at your option) any later version.
16 
17     This program is distributed in the hope that it will be useful,
18     but WITHOUT ANY WARRANTY; without even the implied warranty of
19     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20     GNU General Public License for more details.
21 
22     You should have received a copy of the GNU General Public License
23     along with this program; if not, visit http://www.fsf.org/
24 */
25 #ifndef SAT_LOG_H
26 #define SAT_LOG_H 1
27 
28 #include <gtk/gtk.h>
29 
30 #define SAT_LOG_MSG_SEPARATOR "|"
31 
32 typedef enum {
33     SAT_LOG_LEVEL_NONE = 0,
34     SAT_LOG_LEVEL_ERROR = 1,
35     SAT_LOG_LEVEL_WARN = 2,
36     SAT_LOG_LEVEL_INFO = 3,
37     SAT_LOG_LEVEL_DEBUG = 4
38 } sat_log_level_t;
39 
40 void            sat_log_init(void);
41 void            sat_log_close(void);
42 void            sat_log_log(sat_log_level_t level, const char *fmt, ...);
43 void            sat_log_set_visible(gboolean visible);
44 void            sat_log_set_level(sat_log_level_t level);
45 
46 #endif
47