LearnWithTouch/App/LearnWithTouch_ios/Libraries/libil2cpp/include/external/xamarin-android/logger.h

75 lines
1.7 KiB
C
Raw Normal View History

2019-07-01 14:33:21 +02:00
#ifndef __MONODROID_LOGGER_H__
#define __MONODROID_LOGGER_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifndef ANDROID
typedef enum android_LogPriority
{
ANDROID_LOG_UNKNOWN = 0,
ANDROID_LOG_DEFAULT, /* only for SetMinPriority() */
ANDROID_LOG_VERBOSE,
ANDROID_LOG_DEBUG,
ANDROID_LOG_INFO,
ANDROID_LOG_WARN,
ANDROID_LOG_ERROR,
ANDROID_LOG_FATAL,
ANDROID_LOG_SILENT, /* only for SetMinPriority(); must be last */
} android_LogPriority;
#endif
// Keep in sync with Mono.Android/src/Runtime/Logger.cs!LogCategories enum
typedef enum _LogCategories
{
LOG_NONE = 0,
LOG_DEFAULT = 1 << 0,
LOG_ASSEMBLY = 1 << 1,
LOG_DEBUGGER = 1 << 2,
LOG_GC = 1 << 3,
LOG_GREF = 1 << 4,
LOG_LREF = 1 << 5,
LOG_TIMING = 1 << 6,
LOG_BUNDLE = 1 << 7,
LOG_NET = 1 << 8,
LOG_NETLINK = 1 << 9,
} LogCategories;
#if 0
extern unsigned int log_categories;
#if DEBUG
extern int gc_spew_enabled;
#endif
void init_categories(const char *override_dir);
void log_error(LogCategories category, const char *format, ...);
void log_fatal(LogCategories category, const char *format, ...);
void log_info(LogCategories category, const char *format, ...);
void log_warn(LogCategories category, const char *format, ...);
void log_debug(LogCategories category, const char *format, ...);
#else
#define init_categories(override_dir)
#define log_error(category, format, ...)
#define log_fatal(category, format, ...)
#define log_info(category, format, ...)
#define log_warn(category, format, ...)
#define log_debug(category, format, ...)
#endif
#ifdef __cplusplus
}
#endif
#endif /* __MONODROID_LOGGER_H__ */