// ********************************************************************** // // Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** #include #include using namespace std; using namespace IceGrid; TraceLevels::TraceLevels(const Ice::PropertiesPtr& properties, const Ice::LoggerPtr& theLogger, bool isNode) : application(0), applicationCat("Application"), node(0), nodeCat("Node"), server(0), serverCat("Server"), adapter(0), adapterCat("Adapter"), object(0), objectCat("Object"), activator(0), activatorCat("Activator"), patch(0), patchCat("Patch"), session(0), sessionCat("Session"), logger(theLogger) { string keyBase = isNode ? "IceGrid.Node.Trace." : "IceGrid.Registry.Trace."; const_cast(application) = properties->getPropertyAsInt(keyBase + applicationCat); const_cast(node) = properties->getPropertyAsInt(keyBase + nodeCat); const_cast(server) = properties->getPropertyAsInt(keyBase + serverCat); const_cast(adapter) = properties->getPropertyAsInt(keyBase + adapterCat); const_cast(object) = properties->getPropertyAsInt(keyBase + objectCat); const_cast(activator) = properties->getPropertyAsInt(keyBase + activatorCat); const_cast(patch) = properties->getPropertyAsInt(keyBase + patchCat); const_cast(session) = properties->getPropertyAsInt(keyBase + sessionCat); } TraceLevels::~TraceLevels() { }