[coop] Refactor/reuse mono_value_box_handle/mono_value_box_checked and reduce raw...
[mono-project.git] / mono / utils / mono-logger.h
bloba90e6c54cf365c5aa90b0484019b5e42356281e3
1 /**
2 * \file
3 */
5 #ifndef __MONO_LOGGER_H__
6 #define __MONO_LOGGER_H__
8 #include <mono/utils/mono-publib.h>
9 MONO_BEGIN_DECLS
11 MONO_API void
12 mono_trace_set_level_string (const char *value);
14 MONO_API void
15 mono_trace_set_mask_string (const char *value);
17 typedef void (*MonoPrintCallback) (const char *string, mono_bool is_stdout);
18 typedef void (*MonoLogCallback) (const char *log_domain, const char *log_level, const char *message, mono_bool fatal, void *user_data);
20 MONO_API void
21 mono_trace_set_log_handler (MonoLogCallback callback, void *user_data);
23 MONO_API void
24 mono_trace_set_print_handler (MonoPrintCallback callback);
26 MONO_API void
27 mono_trace_set_printerr_handler (MonoPrintCallback callback);
29 MONO_END_DECLS
31 #endif /* __MONO_LOGGER_H__ */