3.4.0
CTiglLogging.h File Reference

Implementation of the TIGL Logger. More...

#include "tigl_config.h"
#include "tigl.h"
#include "tigl_internal.h"
#include "CSharedPtr.h"
#include <string>
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <cstring>

Data Structures

class  tigl::CTiglLogging
 
class  tigl::DebugStream_
 
class  tigl::DummyLogger_
 

Namespaces

 tigl
 The CTiglShapeCache class acts as a storage for all kinds of intermediate shape results in order to improve speed of reoccurent calculations.
 

Macros

#define DLOG(level)
 
#define LOG(level)
 
#define LOG_MAX_LEVEL   TILOG_DEBUG4
 
#define LOG_MIN_LEVEL   TILOG_SILENT
 

Typedefs

typedef class CSharedPtr< ITiglLogger > tigl::PTiglLogger
 

Functions

TIGL_EXPORT std::string tigl::getLogLevelString (TiglLogLevel level)
 

Detailed Description

Implementation of the TIGL Logger.

Macro Definition Documentation

◆ DLOG

#define DLOG (   level)
Value:
if (TILOG_ ## level > LOG_MAX_LEVEL) ;\
else tigl::DebugStream_().AppendToStream(TILOG_ ## level, __FILE__, __LINE__)
TIGL_EXPORT std::ostringstream & AppendToStream(TiglLogLevel level, const char *file, int line)
Definition: CTiglLogging.h:83
#define LOG_MAX_LEVEL
Definition: CTiglLogging.h:50

◆ LOG

#define LOG (   level)
Value:
if (TILOG_ ## level > LOG_MAX_LEVEL || TILOG_ ## level <= LOG_MIN_LEVEL) ;\
else tigl::DummyLogger_().AppendToStream(TILOG_ ## level, __FILE__, __LINE__)
Definition: CTiglLogging.h:68
#define LOG_MIN_LEVEL
Definition: CTiglLogging.h:53
#define LOG_MAX_LEVEL
Definition: CTiglLogging.h:50
TIGL_EXPORT std::ostringstream & AppendToStream(TiglLogLevel level, const char *file, int line)

This macros can be used like streams e.g.: LOG(ERROR) << "that is an error"; Following log levels are supported: ERROR, WARNING, INFO, DEBUG, DEBUG1, DEBUG2, DEBUG3, DEBUG4

◆ LOG_MAX_LEVEL

#define LOG_MAX_LEVEL   TILOG_DEBUG4

◆ LOG_MIN_LEVEL

#define LOG_MIN_LEVEL   TILOG_SILENT