PolyVox  0.2.1
Open source voxel management library
Namespaces | Macros | Enumerations | Variables
Log.h File Reference
#include "Impl/TypeDef.h"
#include <string>

Go to the source code of this file.

Namespaces

namespace  PolyVox
 Main namespace.

Macros

#define POLYVOX_LOG_DEBUG(message)
#define POLYVOX_LOG_INFO(message)   if(logHandler){logHandler(message, LS_INFO);}
#define POLYVOX_LOG_WARN(message)   if(logHandler){logHandler(message, LS_WARN);}
#define POLYVOX_LOG_ERROR(message)   if(logHandler){logHandler(message, LS_ERROR);}

Enumerations

enum  PolyVox::LogSeverity { PolyVox::LS_DEBUG, PolyVox::LS_INFO, PolyVox::LS_WARN, PolyVox::LS_ERROR }
 Log levels for filtering logging events. More...

Variables

void(* PolyVox::logHandler )(std::string, int severity)

Macro Definition Documentation

#define POLYVOX_LOG_DEBUG (   message)

Definition at line 55 of file Log.h.

#define POLYVOX_LOG_ERROR (   message)    if(logHandler){logHandler(message, LS_ERROR);}

Definition at line 61 of file Log.h.

#define POLYVOX_LOG_INFO (   message)    if(logHandler){logHandler(message, LS_INFO);}

Definition at line 59 of file Log.h.

#define POLYVOX_LOG_WARN (   message)    if(logHandler){logHandler(message, LS_WARN);}

Definition at line 60 of file Log.h.