3.5.0-rc1
Loading...
Searching...
No Matches
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

namespace  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< ITiglLoggertigl::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__)
#define LOG_MAX_LEVEL
Definition CTiglLogging.h:50
Definition CTiglLogging.h:84
TIGL_EXPORT std::ostringstream & AppendToStream(TiglLogLevel level, const char *file, int line)

◆ LOG

#define LOG ( level)
Value:
if (TILOG_ ## level > LOG_MAX_LEVEL || TILOG_ ## level <= LOG_MIN_LEVEL) ;\
else tigl::DummyLogger_().AppendToStream(TILOG_ ## level, __FILE__, __LINE__)
#define LOG_MIN_LEVEL
Definition CTiglLogging.h:53
Definition CTiglLogging.h:69
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