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.
 
 

17 lines
366 B

#include "logger.hpp"
#include <QApplication>
#include <QDateTime>
#include <QDebug>
#include <QFile>
void zos_log(const char *fmt, ...) {
va_list args;
va_start(args, fmt);
char buf[1024] = {0};
vsnprintf(buf, sizeof(buf), fmt, args);
qDebug() << buf;
va_end(args);
}
int32_t zos_get_ticket() { return (int32_t)QDateTime::currentMSecsSinceEpoch(); }