History

move Logging to LogHandler

Stephen Birarda committed 12 years ago

Commit d3bbd251 parent 2711ff214 files · +60 −54Browse files

Showing the changes to assignment-client/src/AssignmentClient.cpp (1 of 14 files). Show all

Unified · Split

assignment-client/src/AssignmentClient.cpp+3−3
@@ -16,7 +16,7 @@ · 15 unmodified lines
1616 #include <AccountManager.h>
1717 #include <Assignment.h>
1818 #include <HifiConfigVariantMap.h>
19−#include <Logging.h>
19+#include <LogHandler.h>
2020 #include <LogUtils.h>
2121 #include <NodeList.h>
2222 #include <PacketHeaders.h>
@@ -51,7 +51,7 @@ AssignmentClient::AssignmentClient(int &argc, char **argv) : · 28 unmodified lines
5151 connect(&_shutdownEventListener, SIGNAL(receivedCloseEvent()), SLOT(quit()));
5252
5353 // set the logging target to the the CHILD_TARGET_NAME
54− Logging::setTargetName(ASSIGNMENT_CLIENT_TARGET_NAME);
54+ LogHandler::getInstance().setTargetName(ASSIGNMENT_CLIENT_TARGET_NAME);
5555
5656 const QVariantMap argumentVariantMap = HifiConfigVariantMap::mergeCLParametersWithJSONConfig(arguments());
5757
@@ -218,7 +218,7 @@ void AssignmentClient::handleAuthenticationRequest() { · 160 unmodified lines
218218
219219 void AssignmentClient::assignmentCompleted() {
220220 // reset the logging target to the the CHILD_TARGET_NAME
221− Logging::setTargetName(ASSIGNMENT_CLIENT_TARGET_NAME);
221+ LogHandler::getInstance().setTargetName(ASSIGNMENT_CLIENT_TARGET_NAME);
222222
223223 qDebug("Assignment finished or never started - waiting for new assignment.");
224224