first pass at adding logging framework

This commit is contained in:
Jeremy Borgman
2021-01-05 11:47:16 -06:00
committed by borgmanJeremy
parent ccbc1bfc17
commit 76ad9e5a6f
154 changed files with 43525 additions and 2 deletions

View File

@@ -45,6 +45,10 @@
#include <QShortcut>
#include <QUndoView>
#include <draggablewidgetmaker.h>
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/spdlog.h"
// CaptureWidget is the main component used to capture the screen. It contains
// an area of selection with its respective buttons.
@@ -799,6 +803,7 @@ void CaptureWidget::handleButtonSignal(CaptureTool::Request r)
break;
case CaptureTool::REQ_REDO_MODIFICATION:
if (m_undoStack.redoText() == "Circle Counter") {
SPDLOG_DEBUG("Redo Circle Increment.");
this->incrementCircleCount();
}
m_undoStack.redo();
@@ -869,10 +874,13 @@ void CaptureWidget::setDrawColor(const QColor& c)
void CaptureWidget::incrementCircleCount()
{
m_context.circleCount++;
SPDLOG_DEBUG("Incrementing Circle to {}.", m_context.circleCount);
}
void CaptureWidget::decrementCircleCount()
{
SPDLOG_DEBUG("Decrementing Circle.");
m_context.circleCount--;
}