29#include <QLoggingCategory>
30#include <QElapsedTimer>
45 LogTimer(
const QString &categoryName,
const QString &func);
54 QElapsedTimer m_timer;
55 QByteArray m_categoryName;
57 QLoggingCategory m_category;
60bool isLoggingEnabled(
const QLoggingCategory &loggingCategory);
62void configureLegacyLogging();
66Q_DECLARE_LOGGING_CATEGORY(lcButeoCore)
67Q_DECLARE_LOGGING_CATEGORY(lcButeoMsyncd)
68Q_DECLARE_LOGGING_CATEGORY(lcButeoPlugin)
69Q_DECLARE_LOGGING_CATEGORY(lcButeoTrace)
Helper class for timing function execution time.
Definition: Logger.h:38
LogTimer(const QString &categoryName, const QString &func)
Constructor. Creates an entry message to the log.
Definition: Logger.cpp:33
~LogTimer()
Destructor. Creates an exit message to the log, including function execution time.
Definition: Logger.cpp:42