@@ -31,6 +31,7 @@ struct Logger {
};
typedef struct Logger Logger;
+AFUN_TOOL_EXPORT void printLogSystemInfo(void);
AFUN_TOOL_EXPORT int initLogSystem(FilePath path, bool asyn);
AFUN_TOOL_EXPORT int destructLogSystem(void);
@@ -76,6 +76,10 @@ static pthread_mutex_t log_factory_mutex = PTHREAD_MUTEX_INITIALIZER;
static void destructLogSystemAtExit(void *data);
static void *ansyWritrLog_(void *_);
+void printLogSystemInfo(void) {
+ printf("Log system on %p\n", &log_factory);
+}
+
/*
* 函数名: initLogSystem
* 目标: 初始化日志系统
@@ -15,6 +15,7 @@ int main(int argc, char **argv){
.buf=&main_buf,
+ printLogSystemInfo();
if (!aFunInit(&info)) {
INIT_ERROR:
printf_stderr(0, "aFunlang init error.");