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  cloudViewer::utility::VerbosityLevel { cloudViewer::utility::VerbosityLevel::Error = 0, cloudViewer::utility::VerbosityLevel::Warning = 1, cloudViewer::utility::VerbosityLevel::Info = 2, cloudViewer::utility::VerbosityLevel::Debug = 3 }
 
enum  cloudViewer::utility::TextColor {
  cloudViewer::utility::TextColor::Black = 0, cloudViewer::utility::TextColor::Red = 1, cloudViewer::utility::TextColor::Green = 2, cloudViewer::utility::TextColor::Yellow = 3,
  cloudViewer::utility::TextColor::Blue = 4, cloudViewer::utility::TextColor::Magenta = 5, cloudViewer::utility::TextColor::Cyan = 6, cloudViewer::utility::TextColor::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__

◆ DEFAULT_IO_BUFFER_SIZE

#define DEFAULT_IO_BUFFER_SIZE   1024

◆ LogDebug

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

◆ LogError

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

◆ LogInfo

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

◆ LogWarning

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