AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzDebug.h
Go to the documentation of this file.
00001 // 
00002 //
00003 // AppEasy SDK - Cross Platform Multi-purpose Game and App Engine
00004 //
00005 // Developed by Matthew Hopwood of Pocketeers Limited - www.pocketeers.co.uk
00006 //
00007 // For updates, tutorials and more details check out www.appeasymobile.com
00008 //
00009 // This code is provided free of charge and without any warranty whatsoever. You must ensure that this whole notice is present in all files and derivatives, so the reader knows its origin.
00010 // If you use this SDK in your product then please ensure that you credit AppEasy's usage appropriately. Please see www.appeasymobile.com for licensing details and support
00011 //
00012 //
00013 
00014 #if !defined(_CCZ_DEBUG_H_)
00015 #define _CCZ_DEBUG_H_
00016 
00017 //#include "CzSlotArray.h"
00018 
00019 /**
00020  @addtogroup Debug
00021  @{
00022  */
00023  
00024 #define CZ_DEBUG_TRACE_NONE     0
00025 #define CZ_DEBUG_TRACE_MIN      1
00026 #define CZ_DEBUG_TRACE_MAX      2
00027 extern int g_CzShowTracing;
00028 
00029 #define CZ_DEBUG_CHANNEL_NONE       0
00030 #define CZ_DEBUG_CHANNEL_INFO       1
00031 #define CZ_DEBUG_CHANNEL_WARNING    2
00032 #define CZ_DEBUG_CHANNEL_ERROR      3
00033 
00034 /**
00035  @class CzDebug
00036 
00037  @brief Error logging class.
00038 
00039  Error logging uses the concept of channels. A channel dtermines how the printed information will be prefixed. Currently available channels include:
00040 
00041  - CZ_DEBUG_CHANNEL_NONE - No specific channel, no prefix
00042  - CZ_DEBUG_CHANNEL_INFO - Informational message, prefixed with Info:
00043  - CZ_DEBUG_CHANNEL_WARNING - A warning, prefixed with Warning:
00044  - CZ_DEBUG_CHANNEL_ERROR - An error, prefixed with Error:
00045 
00046  You can add your own prefixes by updating g_CzChannelName
00047 
00048  */
00049 
00050 class CzDebug
00051 {
00052 public:
00053     static void Init();
00054     static void Log(int channel, const char* message, const char* data = NULL);
00055     static void Log(int channel, const char* message, const char* data1, const char* data2);
00056     static void Log(int channel, const char* message, const char* file, int line);
00057     static void Log(int channel, const char* message, const char* data, const char* file, int line);
00058 };
00059 
00060 /// @}
00061 
00062 
00063 #endif  // _CCZ_DEBUG_H_