cameralitytraces.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) 2010-2011 Nokia Corporation and/or its subsidiary(-ies).
  3. * All rights reserved.
  4. * This component and the accompanying materials are made available
  5. * under the terms of "Eclipse Public License v1.0"
  6. * which accompanies this distribution, and is available
  7. * at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8. *
  9. * Initial Contributors:
  10. * Nokia Corporation - initial contribution.
  11. *
  12. * Contributors:
  13. *
  14. * Description: Camerality project tracing definitions.
  15. */
  16. #ifndef CAMERALITYTRACES_H_
  17. #define CAMERALITYTRACES_H_
  18. #define CAMERALITY_TRACE_ON
  19. #ifdef CAMERALITY_TRACE_ON
  20. #include <e32std.h>
  21. #include <e32debug.h>
  22. #include <flogger.h>
  23. #define CAMERALITY_LOG_TO_DEBUG_OUTPUT
  24. #define TRACE_DIR _L("camerality")
  25. #define TRACE_FILE _L("debug.log")
  26. #define TRACE(x) RDebug::Print(_L(x));
  27. #define TRACE_ARG(txt,parm...) RDebug::Printf(txt, parm);
  28. #define TRACE_ENTER() RDebug::Printf("%s =>", __PRETTY_FUNCTION__);
  29. #define TRACE_VISIT() RDebug::Printf("%s =><=", __PRETTY_FUNCTION__);
  30. #define TRACE_EXIT() RDebug::Printf("%s <=", __PRETTY_FUNCTION__);
  31. #else
  32. #define TRACE(x)
  33. #define TRACE_ARG(txt,parm...)
  34. #define TRACE_ENTER()
  35. #define TRACE_VISIT()
  36. #define TRACE_EXIT()
  37. #endif // CAMERALITY_TRACE_ON
  38. #endif /* CAMERALITYTRACES_H_ */