7#define IMMERSITECH_LOGGER_API __attribute__((__visibility__("default")))
9#define IMMERSITECH_LOGGER_API __declspec(dllexport)
11#define IMMERSITECH_LOGGER_API
15#include <android/log.h>
16#define LOG_TAG "immersitech"
17#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
110 std::mutex _log_lock;
122#define IMM_LOGGER imm_logger::get_logger()
Default Immersitech logger handler.
Definition: immersitech_logger.h:37
virtual ~imm_logger_handler()
Destroy the immersitech logger handler object.
imm_logger_handler()
Construct a new immersitech logger handler object.
virtual void handle(imm_log_level level, const char *str)
This function will process a message and post it to the appropriate log.
Logger class.
Definition: immersitech_logger.h:57
virtual void log(imm_log_level level, const char *format,...)
write a message to a log
static std::string to_string(imm_log_level level)
Convert log level to string.
static imm_logger * get_logger()
Get the logger object.
virtual ~imm_logger()
Destroy the logger object.
void set_enabled(bool enable)
Turn the logger on or off.
void initialize(imm_logger_handler *handler)
Initialize logger with speficied handler.
void set_log_level(imm_log_level level)
Set the log level.
#define IMMERSITECH_LOGGER_API
Definition: immersitech_logger.h:11
imm_log_level
Log level definition.
Definition: immersitech_logger.h:26
@ IMM_LOG_VERBOSE
This level is used for anything, no matter how unimportant.
Definition: immersitech_logger.h:27
@ IMM_LOG_WARNING
This level should be used for something that happened that could lead to an error or unexpected behav...
Definition: immersitech_logger.h:30
@ IMM_LOG_ERROR
This level is exclusively for critical errors that have affected functionality.
Definition: immersitech_logger.h:31
@ IMM_LOG_INFO
This level can be used to print generic information. For example, a participant was added to a room.
Definition: immersitech_logger.h:29
@ IMM_LOG_DEBUG
This level should be used only during a debugging session. It should print information that is helpfu...
Definition: immersitech_logger.h:28