00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef CAIRO_DOCK_LOG_H_
00027 # define CAIRO_DOCK_LOG_H_
00028
00029 # include <gtk/gtk.h>
00030
00031 # ifndef _INSIDE_CAIRO_DOCK_LOG_C_
00032 extern GLogLevelFlags gLogLevel;
00033 # endif
00034
00035
00036
00037
00038 void cd_log_location(const GLogLevelFlags loglevel,
00039 const char *file,
00040 const char *func,
00041 const int line,
00042 const char *format,
00043 ...);
00044
00048 void cd_log_init(gboolean bBlackTerminal);
00049
00053 void cd_log_set_level(GLogLevelFlags loglevel);
00054
00055 #define cd_error(...) \
00056 cd_log_location(G_LOG_LEVEL_ERROR, __FILE__, __PRETTY_FUNCTION__, __LINE__,__VA_ARGS__)
00057
00058 #define cd_critical(...) \
00059 cd_log_location(G_LOG_LEVEL_CRITICAL, __FILE__, __PRETTY_FUNCTION__, __LINE__,__VA_ARGS__)
00060
00061 #define cd_warning(...) \
00062 cd_log_location(G_LOG_LEVEL_WARNING, __FILE__, __PRETTY_FUNCTION__, __LINE__,__VA_ARGS__)
00063
00064 #define cd_message(...) \
00065 cd_log_location(G_LOG_LEVEL_MESSAGE, __FILE__, __PRETTY_FUNCTION__, __LINE__,__VA_ARGS__)
00066
00067 #define cd_debug(...) \
00068 cd_log_location(G_LOG_LEVEL_DEBUG, __FILE__, __PRETTY_FUNCTION__, __LINE__,__VA_ARGS__)
00069
00070 #endif