You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
468 B

#include "zoslogger.hpp"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
iflytop::zmutex glog_mutex;
extern "C" {
void zos_loggger_init() { glog_mutex.init(); }
void zos_log(const char* fmt, ...) {
iflytop::zlock_guard lock(glog_mutex);
if (g_enable_log) {
va_list args;
va_start(args, fmt);
vprintf(fmt, args);
va_end(args);
}
}
void zlog_raw(const char* info) {
if (g_enable_log) {
printf(info);
}
}
}