ug4
log.h File Reference
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include "util/ostream_buffer_splitter.h"
#include "types.h"
#include "ug_config.h"
#include <vector>
#include <map>
#include "common/util/crc32.h"
#include "debug_id.h"
#include "log_impl.h"

Go to the source code of this file.

Classes

class  ug::LogAssistant
 

Namespaces

 ug
 the ug namespace
 

Macros

#define IF_DEBUG(__debugID__, level)   if(1==0)
 
#define UG_COND_LOG(cond, msg)   { if (cond) { UG_LOG(msg); } }
 
#define UG_COND_LOGN(cond, msg)   { if (cond) { UG_LOGN(msg); } }
 
#define UG_COND_WARNING(cond, msg)
 
#define UG_DEBUG_BEGIN(__debugID__, level)   { if(1==0) {
 
#define UG_DEBUG_END(__debugID__, level)   }; }
 
#define UG_DLOG(__debugID__, level, msg)   {}
 
#define UG_DLOG_ALL_PROCS(__debugID__, level, msg)   {}
 
#define UG_DLOGN(__debugID__, level, msg)   {}
 
#define UG_ENABLE_WARNINGS
 
#define UG_ERR_LOG(msg)   {ug::GetLogAssistant().error_logger() << msg; VRL_LOG(msg);}
 
#define UG_LOG(msg)   {ug::GetLogAssistant().logger() << msg << std::flush; VRL_LOG(msg);}
 
#define UG_LOG_ALL_PROCS(msg)
 
#define UG_LOGN(msg)   UG_LOG(msg << "\n")
 
#define UG_RESET_DEBUG_LEVELS()   {}
 
#define UG_SET_DEBUG_LEVEL(__debugID__, level)   {}
 
#define UG_SET_DEBUG_LEVELS(level)   {}
 
#define UG_WARNING(msg)
 
#define VRL_LOG(msg)
 

Functions

std::string ug::ConvertNumber (uint64_t size, unsigned int width, unsigned int numDisplayedDigits)
 returns number 'size' in a more human readable format (using IEC binary prefixes) More...
 
std::string ug::ConvertNumberSI (uint64_t size, unsigned int width, unsigned int numDisplayedDigits)
 returns number 'size' in a more human readable format (using SI prefixes) More...
 
LogAssistant & ug::GetLogAssistant ()
 

Variables

const uint64 ug::UNIT_EXA = UNIT_PETA * 1024ll
 
const uint64 ug::UNIT_EXA_SI = UNIT_PETA_SI * 1000ll
 
const uint64 ug::UNIT_GIGA = UNIT_MEGA * 1024
 
const uint64 ug::UNIT_GIGA_SI = UNIT_MEGA_SI * 1000
 
const uint64 ug::UNIT_KILO = 1024
 
const uint64 ug::UNIT_KILO_SI = 1000
 
const uint64 ug::UNIT_MEGA = UNIT_KILO * 1024
 
const uint64 ug::UNIT_MEGA_SI = UNIT_KILO_SI * 1000
 
const uint64 ug::UNIT_PETA = UNIT_TERA * 1024ll
 
const uint64 ug::UNIT_PETA_SI = UNIT_TERA_SI * 1000ll
 
const uint64 ug::UNIT_TERA = UNIT_GIGA * 1024ll
 
const uint64 ug::UNIT_TERA_SI = UNIT_GIGA_SI * 1000ll