Blender  V2.93
Classes | Macros | Functions
util_logging.h File Reference
#include <iostream>

Go to the source code of this file.

Classes

class  StubStream
 
class  LogMessageVoidify
 

Macros

#define LOG_SUPPRESS()   (true) ? ((void)0) : LogMessageVoidify() & StubStream()
 
#define LOG(severity)   LOG_SUPPRESS()
 
#define VLOG(severity)   LOG_SUPPRESS()
 
#define VLOG_IF(severity, condition)   LOG_SUPPRESS()
 
#define VLOG_ONCE(level, flag)
 

Functions

void util_logging_init (const char *argv0)
 
void util_logging_start ()
 
void util_logging_verbosity_set (int verbosity)
 
std::ostream & operator<< (std::ostream &os, const int2 &value)
 
std::ostream & operator<< (std::ostream &os, const float3 &value)
 

Macro Definition Documentation

◆ LOG

#define LOG (   severity)    LOG_SUPPRESS()

Definition at line 49 of file util_logging.h.

◆ LOG_SUPPRESS

#define LOG_SUPPRESS ( )    (true) ? ((void)0) : LogMessageVoidify() & StubStream()

Definition at line 48 of file util_logging.h.

◆ VLOG

#define VLOG (   severity)    LOG_SUPPRESS()

Definition at line 50 of file util_logging.h.

◆ VLOG_IF

#define VLOG_IF (   severity,
  condition 
)    LOG_SUPPRESS()

Definition at line 51 of file util_logging.h.

◆ VLOG_ONCE

#define VLOG_ONCE (   level,
  flag 
)
Value:
if (!flag) \
flag = true, VLOG(level)
#define VLOG(severity)
Definition: util_logging.h:50

Definition at line 54 of file util_logging.h.

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  os,
const float3 value 
)

Definition at line 92 of file util_logging.cpp.

References float3::x, float3::y, and float3::z.

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  os,
const int2 value 
)

Definition at line 86 of file util_logging.cpp.

References int2::x, and int2::y.

◆ util_logging_init()

void util_logging_init ( const char *  argv0)

Definition at line 44 of file util_logging.cpp.

References is_verbosity_set().

Referenced by CCL_init_logging(), and main().

◆ util_logging_start()

void util_logging_start ( )

Definition at line 61 of file util_logging.cpp.

References is_verbosity_set().

Referenced by CCL_start_debug_logging(), main(), options_parse(), and RenderGraph::SetUp().

◆ util_logging_verbosity_set()

void util_logging_verbosity_set ( int  verbosity)

Definition at line 74 of file util_logging.cpp.

References snprintf.

Referenced by CCL_logging_verbosity_set(), main(), options_parse(), and RenderGraph::SetUp().