ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Logging.h File Reference
#include <functional>
#include <iostream>
#include <sstream>
#include <string>
#include "CVCoreLib.h"
#include <fmt/core.h>
#include <fmt/printf.h>
#include <fmt/ranges.h>
Include dependency graph for Logging.h:

Go to the source code of this file.

Classes

class  cloudViewer::utility::Logger
 Logger class should be used as a global singleton object (GetInstance()). More...
 
struct  cloudViewer::utility::Logger::Impl
 
class  cloudViewer::utility::VerbosityContextManager
 
class  cloudViewer::utility::ConsoleProgressBar
 

Namespaces

 cloudViewer
 Generic file read and write utility for python interface.
 
 cloudViewer::utility
 

Macros

#define DEFAULT_IO_BUFFER_SIZE   1024
 
#define __FN__   __PRETTY_FUNCTION__
 
#define LogError(...)
 
#define LogWarning(...)
 
#define LogInfo(...)
 
#define LogDebug(...)
 

Enumerations

enum class  cloudViewer::utility::VerbosityLevel { cloudViewer::utility::Error = 0 , cloudViewer::utility::Warning = 1 , cloudViewer::utility::Info = 2 , cloudViewer::utility::Debug = 3 }
 
enum class  cloudViewer::utility::TextColor {
  cloudViewer::utility::Black = 0 , cloudViewer::utility::Red = 1 , cloudViewer::utility::Green = 2 , cloudViewer::utility::Yellow = 3 ,
  cloudViewer::utility::Blue = 4 , cloudViewer::utility::Magenta = 5 , cloudViewer::utility::Cyan = 6 , cloudViewer::utility::White = 7
}
 

Functions

void cloudViewer::utility::SetVerbosityLevel (VerbosityLevel level)
 
VerbosityLevel cloudViewer::utility::GetVerbosityLevel ()
 Get global verbosity level of CloudViewer. More...
 

Macro Definition Documentation

◆ __FN__

#define __FN__   __PRETTY_FUNCTION__

Definition at line 38 of file Logging.h.

◆ DEFAULT_IO_BUFFER_SIZE

#define DEFAULT_IO_BUFFER_SIZE   1024

Definition at line 31 of file Logging.h.

◆ LogDebug

#define LogDebug (   ...)
Value:
Logger::LogDebug_(__FILE__, __LINE__, static_cast<const char *>(__FN__), \
__VA_ARGS__)
#define __FN__
Definition: Logging.h:38

Definition at line 90 of file Logging.h.

◆ LogError

#define LogError (   ...)
Value:
Logger::LogError_(__FILE__, __LINE__, static_cast<const char *>(__FN__), \
__VA_ARGS__)

Definition at line 60 of file Logging.h.

◆ LogInfo

#define LogInfo (   ...)
Value:
Logger::LogInfo_(__FILE__, __LINE__, static_cast<const char *>(__FN__), \
__VA_ARGS__)

Definition at line 81 of file Logging.h.

◆ LogWarning

#define LogWarning (   ...)
Value:
Logger::LogWarning_(__FILE__, __LINE__, static_cast<const char *>(__FN__), \
__VA_ARGS__)

Definition at line 72 of file Logging.h.