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 Class Reference

Error logging class. More...

#include <CzDebug.h>

List of all members.

Static Public Member Functions

static void Init ()
 Initialise the debug output system.
static void Log (int channel, const char *message, const char *data=NULL)
 Logs debug errors.
static void Log (int channel, const char *message, const char *data1, const char *data2)
 Logs debug errors.
static void Log (int channel, const char *message, const char *file, int line)
 Logs debug errors.
static void Log (int channel, const char *message, const char *data, const char *file, int line)
 Logs debug errors.

Detailed Description

Error logging class.

Error logging uses the concept of channels. A channel dtermines how the printed information will be prefixed. Currently available channels include:

  • CZ_DEBUG_CHANNEL_NONE - No specific channel, no prefix
    • CZ_DEBUG_CHANNEL_INFO - Informational message, prefixed with Info:
    • CZ_DEBUG_CHANNEL_WARNING - A warning, prefixed with Warning:
    • CZ_DEBUG_CHANNEL_ERROR - An error, prefixed with Error:

You can add your own prefixes by updating g_CzChannelName


Member Function Documentation

void CzDebug::Init ( ) [static]

Initialise the debug output system.

void CzDebug::Log ( int  channel,
const char *  message,
const char *  data = NULL 
) [static]

Logs debug errors.

Parameters:
channelThe channel.
messageThe message.
dataThe extra data to output.
void CzDebug::Log ( int  channel,
const char *  message,
const char *  data1,
const char *  data2 
) [static]

Logs debug errors.

Parameters:
channelThe channel.
messageThe message.
data1The extra data to output.
data2The extra data to output.
void CzDebug::Log ( int  channel,
const char *  message,
const char *  file,
int  line 
) [static]

Logs debug errors.

Parameters:
channelThe channel.
messageThe message.
fileThe file name where the info, error or warning took place.
lineThe line number wher ethe info, error or warning took place.
void CzDebug::Log ( int  channel,
const char *  message,
const char *  data,
const char *  file,
int  line 
) [static]

Logs debug errors.

Parameters:
channelThe channel.
messageThe message.
dataThe extra data to output.
fileThe file name where the info, error or warning took place.
lineThe line number where the info, error or warning took place.

The documentation for this class was generated from the following files: