telephonyprotocols/pdplayer/umts/test/mbufgobblerlayer/inc/mbufgobblerlog.h
branchRCL_3
changeset 82 042fd2753b8f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/telephonyprotocols/pdplayer/umts/test/mbufgobblerlayer/inc/mbufgobblerlog.h	Wed Oct 13 15:51:46 2010 +0300
@@ -0,0 +1,85 @@
+// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// Helper macros that wrap the ones from ESock.
+//
+
+/**
+ @file
+ @internalComponent
+*/
+
+#ifndef MBUFGOBBLERLOG_H_
+#define MBUFGOBBLERLOG_H_
+
+#include <e32def.h>
+#include <comms-infras/ss_logext.h> //defines LOG_NODE_CREATE and LOG_NODE_DESTROY
+
+#include <cflog.h> //defines __CFLOG_* macros
+
+#include "mbufgobblerhelper.h"
+
+/*
+ * The component tag
+ * 
+ * In commsdbg.ini add line LOG MbufGobblerLayer * to enbale these logs 
+ */
+_LIT8(KMbufGobblerComponentTag, "MbufGobblerLayer");
+
+#define KMbufGobblerMcprTag KESockMetaConnectionTag
+_LIT8(KMbufGobblerMcprSubTag, "MbufGobblerMCpr");
+
+#define KMbufGobblerMCprFactoryTag KESockMetaConnectionTag
+_LIT8(KMbufGobblerMCprFactorySubTag, "MbufGobblerMCprFactory");
+
+#define KMbufGobblerCprFactoryTag KESockConnectionTag
+_LIT8(KMbufGobblerCprFactorySubTag, "MbufGobblerCprFactory");
+
+#define KMbufGobblerCprTag KESockConnectionTag
+_LIT8(KMbufGobblerCprSubTag, "MbufGobblerCpr");
+
+#define KMbufGobblerScprFactoryTag KESockSubConnectionTag
+_LIT8(KMbufGobblerScprFactorySubTag, "MbufGobblerSCprFactory");
+
+#define KMbufGobblerScprTag KESockSubConnectionTag
+_LIT8(KMbufGobblerScprSubTag, "MbufGobblerSCpr");
+
+#define KMbufGobblerFlowTag KESockFlowTag
+_LIT8(KMbufGobblerFlowSubTag,"MbufGobblerFlow");
+
+#define KMbufGobblerTierTag KESockTierTag
+_LIT8(KMbufGobblerTierSubTag,"MbufGobblerTierM");
+
+#define KMbufGobblerTierFactoryTag KESockTierTag
+_LIT8(KMbufGobblerTierFactorySubTag,"MbufGobblerTierMFactory");
+
+/*
+ * LOG_NODE_CREATE - this logs out to utrace and is needed for SVG viewer
+ * __CFLOG_VAR - this logs to standard comms dbg utils. Must include cflog.mmh in mmp file
+ */
+
+#define MBUFGOBBLER_LOG_NODE_CREATE(subTag, type, nodename, nodeptr) \
+		LOG_NODE_CREATE(subTag, type);		 \
+		MbufGobblerHelper::LogCreateDestroy(subTag, nodename, nodeptr, 1); 
+	
+#define MBUFGOBBLER_LOG_NODE_DESTROY(subTag, type, nodename, nodeptr) \
+		LOG_NODE_DESTROY(subTag, type);		 \
+		MbufGobblerHelper::LogCreateDestroy(subTag, nodename, nodeptr, 0);  
+			
+#define LOGMESSAGE(subtag, nodeclass, nodeptr, sender, recipient, msg)	MbufGobblerHelper::LogMessage(subtag, nodeclass, nodeptr, sender, recipient, msg)
+	
+#define LOG_NODE_INFO(subtag, nodename, node, clientcount) MbufGobblerHelper::PrintClientNodes(subtag, nodename, node, clientcount);
+
+#define LOG(subTag, ARGS...) __CFLOG_VAR((KMbufGobblerComponentTag, subTag, ##ARGS));
+
+#endif /* MBUFGOBBLERLOG_H_ */