MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / ElaLog

Method ElaLog

ElaWidgetTools/ElaLog.cpp:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9ELA_SINGLETON_CPP(ElaLog)
10ELA_PROPERTY_Q_CPP(ElaLog, QString, LogSavePath)
11ELA_PROPERTY_Q_CPP(ElaLog, QString, LogFileName)
12ELA_PROPERTY_Q_CPP(ElaLog, bool, IsLogFileNameWithTime)
13ElaLog::ElaLog(QObject* parent)
14 : QObject{parent}, d_ptr(new ElaLogPrivate())
15{
16 Q_D(ElaLog);
17 d->q_ptr = this;
18 d->_pLogFileName = "ElaLog";
19 d->_pLogSavePath = QDir::currentPath();
20 d->_pIsLogFileNameWithTime = false;
21 d->_configureLogFile();
22 connect(this, &ElaLog::pLogSavePathChanged, d, &ElaLogPrivate::_configureLogFile);
23 connect(this, &ElaLog::pLogFileNameChanged, d, &ElaLogPrivate::_configureLogFile);
24 connect(this, &ElaLog::pIsLogFileNameWithTimeChanged, d, &ElaLogPrivate::_configureLogFile);
25 const auto shutdown = []() {
26 ElaLog::getInstance()->initMessageLog(false);

Callers

nothing calls this directly

Calls 1

_clearLogFileMethod · 0.80

Tested by

no test coverage detected