1 #ifndef __MONO_LOGGER_H__
2 #define __MONO_LOGGER_H__
9 MONO_TRACE_ASSEMBLY
= (1<<0),
10 MONO_TRACE_TYPE
= (1<<1),
11 MONO_TRACE_DLLIMPORT
= (1<<2),
12 MONO_TRACE_GC
= (1<<3),
13 MONO_TRACE_CONFIG
= (1<<4),
14 MONO_TRACE_AOT
= (1<<5),
15 MONO_TRACE_ALL
= MONO_TRACE_ASSEMBLY
|
17 MONO_TRACE_DLLIMPORT
|
24 mono_trace_cleanup (void);
27 mono_trace (GLogLevelFlags level
, MonoTraceMask mask
, const char *format
, ...);
30 mono_tracev (GLogLevelFlags level
, MonoTraceMask mask
, const char *format
, va_list args
);
33 mono_trace_set_level (GLogLevelFlags level
);
36 mono_trace_set_level_string (const char *value
);
39 mono_trace_set_mask (MonoTraceMask mask
);
42 mono_trace_set_mask_string (char *value
);
45 mono_trace_push (GLogLevelFlags level
, MonoTraceMask mask
);
48 mono_trace_pop (void);
51 mono_trace_is_traced (GLogLevelFlags level
, MonoTraceMask mask
);
53 #ifdef G_HAVE_ISO_VARARGS
54 #define mono_trace_error(...) mono_trace(G_LOG_LEVEL_ERROR, \
56 #define mono_trace_warning(...) mono_trace(G_LOG_LEVEL_WARNING, \
58 #define mono_trace_message(...) mono_trace(G_LOG_LEVEL_MESSAGE, \
60 #elif defined(G_HAVE_GNUC_VARARGS)
61 #define mono_trace_error(format...) mono_trace(G_LOG_LEVEL_ERROR, \
63 #define mono_trace_warning(format...) mono_trace(G_LOG_LEVEL_WARNING, \
65 #define mono_trace_message(format...) mono_trace(G_LOG_LEVEL_MESSAGE, \
67 #else /* no varargs macros */
69 mono_trace_error(MonoTraceMask mask
, const char *format
, ...)
72 va_start (args
, format
);
73 mono_tracev(G_LOG_LEVEL_ERROR
, mask
, format
, args
);
78 mono_trace_warning(MonoTraceMask mask
, const char *format
, ...)
81 va_start (args
, format
);
82 mono_tracev(G_LOG_LEVEL_WARNING
, mask
, format
, args
);
87 mono_trace_message(MonoTraceMask mask
, const char *format
, ...)
90 va_start (args
, format
);
91 mono_tracev(G_LOG_LEVEL_MESSAGE
, mask
, format
, args
);
97 #endif /* !__GNUC__ */
99 #endif /* __MONO_LOGGER_H__ */