logging.h
Go to the documentation of this file.
1 #ifndef SM_LOGGING_H
2 #define SM_LOGGING_H
3 
4 extern const char * sm_program_name;
5 
6 void sm_set_program_name(const char*);
7 
8 void sm_debug(const char *msg, ...);
9 void sm_error(const char *msg, ...);
10 void sm_info(const char *msg, ...);
11 
12 /* Optional context handling for hyerarchical display */
13 void sm_log_push(const char*);
14 void sm_log_pop();
15 
16 /* Enable/disable writing of debug information */
17 void sm_debug_write(int enabled);
18 
19 
20 
21 /* Private interface */
22 void sm_write_context();
24 
25 #endif
void sm_write_context()
Definition: logging.c:135
void sm_log_pop()
Definition: logging.c:130
void sm_log_push(const char *)
Definition: logging.c:118
void sm_set_program_name(const char *)
Definition: logging.c:21
void sm_error(const char *msg,...)
Definition: logging.c:49
void sm_debug(const char *msg,...)
Definition: logging.c:88
const char * sm_program_name
Definition: logging.c:14
void sm_info(const char *msg,...)
Definition: logging.c:71
void check_for_xterm_color()
Definition: logging.c:30
void sm_debug_write(int enabled)
Definition: logging.c:16


csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23