forked from loongly/PureScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmono-logger.h
More file actions
31 lines (21 loc) · 753 Bytes
/
mono-logger.h
File metadata and controls
31 lines (21 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* \file
*/
#ifndef __MONO_LOGGER_H__
#define __MONO_LOGGER_H__
#include <mono/utils/mono-publib.h>
MONO_BEGIN_DECLS
MONO_API void
mono_trace_set_level_string (const char *value);
MONO_API void
mono_trace_set_mask_string (const char *value);
typedef void (*MonoPrintCallback) (const char *string, mono_bool is_stdout);
typedef void (*MonoLogCallback) (const char *log_domain, const char *log_level, const char *message, mono_bool fatal, void *user_data);
MONO_API void
mono_trace_set_log_handler (MonoLogCallback callback, void *user_data);
MONO_API void
mono_trace_set_print_handler (MonoPrintCallback callback);
MONO_API void
mono_trace_set_printerr_handler (MonoPrintCallback callback);
MONO_END_DECLS
#endif /* __MONO_LOGGER_H__ */