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

2 years ago
  1. #include "logger.hpp"
  2. #include <QApplication>
  3. #include <QDateTime>
  4. #include <QDebug>
  5. #include <QFile>
  6. void zos_log(const char *fmt, ...) {
  7. va_list args;
  8. va_start(args, fmt);
  9. char buf[1024] = {0};
  10. vsnprintf(buf, sizeof(buf), fmt, args);
  11. qDebug() << buf;
  12. va_end(args);
  13. }
  14. int32_t zos_get_ticket() { return (int32_t)QDateTime::currentMSecsSinceEpoch(); }