15 #if defined(__CUDACC__) && defined(_MSC_VER) && __CUDACC_VER_MAJOR__ < 11
16 #ifndef FMT_DEPRECATED
17 #define FMT_DEPRECATED
22 #include <fmt/printf.h>
23 #include <fmt/ranges.h>
24 #if FMT_VERSION >= 100000
28 #define DEFAULT_IO_BUFFER_SIZE 1024
51 #define LogError(...) \
52 Logger::LogError_(__FILE__, __LINE__, \
53 static_cast<const char *>(OPEN3D_FUNCTION), __VA_ARGS__)
63 #define LogWarning(...) \
64 Logger::LogWarning_(__FILE__, __LINE__, \
65 static_cast<const char *>(OPEN3D_FUNCTION), \
73 #define LogInfo(...) \
74 Logger::LogInfo_(__FILE__, __LINE__, \
75 static_cast<const char *>(OPEN3D_FUNCTION), __VA_ARGS__)
82 #define LogDebug(...) \
83 Logger::LogDebug_(__FILE__, __LINE__, \
84 static_cast<const char *>(OPEN3D_FUNCTION), __VA_ARGS__)
141 template <
typename... Args>
144 const char *
function,
147 if (
sizeof...(Args) > 0) {
149 file, line,
function,
150 FormatArgs(
format, fmt::make_format_args(args...)));
156 template <
typename... Args>
159 const char *
function,
164 if (
sizeof...(Args) > 0) {
166 file, line,
function,
167 FormatArgs(
format, fmt::make_format_args(args...)));
174 template <
typename... Args>
177 const char *
function,
181 if (
sizeof...(Args) > 0) {
183 file, line,
function,
184 FormatArgs(
format, fmt::make_format_args(args...)));
191 template <
typename... Args>
194 const char *
function,
199 if (
sizeof...(Args) > 0) {
201 file, line,
function,
202 FormatArgs(
format, fmt::make_format_args(args...)));
212 static std::string FormatArgs(
const char *
format, fmt::format_args args) {
213 std::string err_msg = fmt::vformat(
format, args);
216 void VError [[noreturn]] (
const char *file,
218 const char *
function,
219 const std::string &message)
const;
220 void VWarning(
const char *file,
222 const char *
function,
223 const std::string &message)
const;
224 void VInfo(
const char *file,
226 const char *
function,
227 const std::string &message)
const;
228 void VDebug(
const char *file,
230 const char *
function,
231 const std::string &message)
const;
235 std::unique_ptr<Impl> impl_;
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:195
Logger class should be used as a global singleton object (GetInstance()).
Definition: Logging.h:110
Logger(Logger const &)=delete
void operator=(Logger const &)=delete
const std::function< void(const std::string &)> GetPrintFunction()
Get the print function used by the Logger.
Definition: Logging.cpp:116
VerbosityLevel GetVerbosityLevel() const
Get global verbosity level of Open3D.
Definition: Logging.cpp:128
void ResetPrintFunction()
Reset the print function to the default one (print to console).
Definition: Logging.cpp:120
void SetPrintFunction(std::function< void(const std::string &)> print_fcn)
Definition: Logging.cpp:111
static void LogError_(const char *file, int line, const char *function, const char *format, Args &&... args)
Definition: Logging.h:142
static void LogWarning_(const char *file, int line, const char *function, const char *format, Args &&... args)
Definition: Logging.h:157
static void LogDebug_(const char *file, int line, const char *function, const char *format, Args &&... args)
Definition: Logging.h:192
static void LogInfo_(const char *file, int line, const char *function, const char *format, Args &&... args)
Definition: Logging.h:175
void SetVerbosityLevel(VerbosityLevel verbosity_level)
Definition: Logging.cpp:124
static Logger & GetInstance()
Get Logger global singleton instance.
Definition: Logging.cpp:68
Definition: Logging.h:247
void Exit()
Definition: Logging.h:256
VerbosityContextManager(VerbosityLevel level)
Definition: Logging.h:249
void Enter()
Definition: Logging.h:251
const char const char value recording_handle imu_sample void
Definition: K4aPlugin.cpp:250
void SetVerbosityLevel(VerbosityLevel level)
Definition: Logging.cpp:132
VerbosityLevel
Definition: Logging.h:89
VerbosityLevel GetVerbosityLevel()
Get global verbosity level of Open3D.
Definition: Logging.cpp:136
Definition: PinholeCameraIntrinsic.cpp:16