mirror of
https://gitlab.com/spaceti-app/integrations/acs/colnod-connector.git
synced 2026-07-12 20:00:37 +02:00
26 lines
582 B
C++
26 lines
582 B
C++
#pragma once
|
|
|
|
#include <QByteArray>
|
|
#include <QString>
|
|
#include <QDateTime>
|
|
#include <QDate>
|
|
#include <QDebug>
|
|
#include <QDir>
|
|
|
|
namespace LogUtils
|
|
{
|
|
void initLogger(bool vb = false);
|
|
void myMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg);
|
|
void deleteOldLogs(int days = 90);
|
|
void initLogFileName();
|
|
void setLogFolder(QString path);
|
|
|
|
static QString logFileName;
|
|
|
|
static QString logFolderName = "/var/spaceti/log/colnod";
|
|
|
|
//static constexpr int logSize = 1024 * 0;
|
|
//static constexpr int logFileCount = 0;
|
|
};
|
|
|