OpenVDB  12.0.0
Classes | Enumerations | Functions
openvdb::v12_0::logging Namespace Reference

Classes

struct  LevelScope
 A LevelScope object sets the logging level to a given level and restores it to the current level when the object goes out of scope. More...
 

Enumerations

enum  Level {
  Debug = log4cplus::DEBUG_LOG_LEVEL, Info = log4cplus::INFO_LOG_LEVEL, Warn = log4cplus::WARN_LOG_LEVEL, Error = log4cplus::ERROR_LOG_LEVEL,
  Fatal = log4cplus::FATAL_LOG_LEVEL
}
 Message severity level. More...
 

Functions

Level getLevel ()
 Return the current logging level. More...
 
void setLevel (Level lvl)
 Set the logging level. (Lower-level messages will be suppressed.) More...
 
void setLevel (int &argc, char *argv[])
 If "-debug", "-info", "-warn", "-error" or "-fatal" is found in the given array of command-line arguments, set the logging level appropriately and remove the relevant argument(s) from the array. More...
 
void setProgramName (const std::string &progName, bool useColor=true)
 Specify a program name to be displayed in log messages. More...
 
void initialize (bool useColor=true)
 Initialize the logging system if it is not already initialized. More...
 
void initialize (int &argc, char *argv[], bool useColor=true)
 Initialize the logging system from command-line arguments. More...
 

Enumeration Type Documentation

enum Level
strong

Message severity level.

Enumerator
Debug 
Info 
Warn 
Error 
Fatal 

Function Documentation

Level openvdb::v12_0::logging::getLevel ( )
inline

Return the current logging level.

void openvdb::v12_0::logging::initialize ( bool  useColor = true)
inline

Initialize the logging system if it is not already initialized.

void openvdb::v12_0::logging::initialize ( int &  argc,
char *  argv[],
bool  useColor = true 
)
inline

Initialize the logging system from command-line arguments.

If "-debug", "-info", "-warn", "-error" or "-fatal" is found in the given array of command-line arguments, set the logging level appropriately and remove the relevant argument(s) from the array.

void openvdb::v12_0::logging::setLevel ( Level  lvl)
inline

Set the logging level. (Lower-level messages will be suppressed.)

void openvdb::v12_0::logging::setLevel ( int &  argc,
char *  argv[] 
)
inline

If "-debug", "-info", "-warn", "-error" or "-fatal" is found in the given array of command-line arguments, set the logging level appropriately and remove the relevant argument(s) from the array.

void openvdb::v12_0::logging::setProgramName ( const std::string &  progName,
bool  useColor = true 
)
inline

Specify a program name to be displayed in log messages.