NVIDIA Iray: Math API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Logging

Logger interface and severity levels. More...

Classes

class  mi::base::ILogger
 The ILogger interface class supports logging of messages. More...
 
class  mi::base::Log_stream
 Adapts mi::base::ILogger to a standard streaming interface. More...
 

Enumerations

enum  mi::base::Message_severity {
  mi::base::MESSAGE_SEVERITY_FATAL = 0,
  mi::base::MESSAGE_SEVERITY_ERROR = 1,
  mi::base::MESSAGE_SEVERITY_WARNING = 2,
  mi::base::MESSAGE_SEVERITY_INFO = 3,
  mi::base::MESSAGE_SEVERITY_VERBOSE = 4,
  mi::base::MESSAGE_SEVERITY_DEBUG = 5
}
 Constants for possible message severities. More...
 

Functions

template<typename C , typename T >
std::basic_ostream< C, T > & mi::base::fatal (std::basic_ostream< C, T > &ostream)
 Manipulator for mi::base::Log_stream. More...
 
template<typename C , typename T >
std::basic_ostream< C, T > & mi::base::error (std::basic_ostream< C, T > &ostream)
 Manipulator for mi::base::Log_stream. More...
 
template<typename C , typename T >
std::basic_ostream< C, T > & mi::base::warning (std::basic_ostream< C, T > &ostream)
 Manipulator for mi::base::Log_stream. More...
 
template<typename C , typename T >
std::basic_ostream< C, T > & mi::base::info (std::basic_ostream< C, T > &ostream)
 Manipulator for mi::base::Log_stream. More...
 
template<typename C , typename T >
std::basic_ostream< C, T > & mi::base::verbose (std::basic_ostream< C, T > &ostream)
 Manipulator for mi::base::Log_stream. More...
 
template<typename C , typename T >
std::basic_ostream< C, T > & mi::base::debug (std::basic_ostream< C, T > &ostream)
 Manipulator for mi::base::Log_stream. More...
 

Detailed Description

Logger interface and severity levels.

Include File:
#include <mi/base/ilogger.h>

Enumeration Type Documentation

Constants for possible message severities.

See Also
mi::base::ILogger::message()
Enumerator
MESSAGE_SEVERITY_FATAL 

A fatal error has occurred.

MESSAGE_SEVERITY_ERROR 

An error has occurred.

MESSAGE_SEVERITY_WARNING 

A warning has occurred.

MESSAGE_SEVERITY_INFO 

This is a normal operational message.

MESSAGE_SEVERITY_VERBOSE 

This is a more verbose message.

MESSAGE_SEVERITY_DEBUG 

This is debug message.

Function Documentation

template<typename C , typename T >
std::basic_ostream<C, T>& mi::base::debug ( std::basic_ostream< C, T > &  ostream)

Manipulator for mi::base::Log_stream.

Flushes the buffer if not empty, and sets the log level of the next message to MESSAGE_SEVERITY_DEBUG.

Note
If you are using a C++ standard older than C++14, make sure to use the manipulator only if the stream is an instance of mi::base::Log_stream, otherwise your program will crash. With C++14 and later, these manipulators will be ignored if the stream is not an instance of mi::base::Log_stream.
template<typename C , typename T >
std::basic_ostream<C, T>& mi::base::error ( std::basic_ostream< C, T > &  ostream)

Manipulator for mi::base::Log_stream.

Flushes the buffer if not empty, and sets the log level of the next message to MESSAGE_SEVERITY_ERROR.

Note
If you are using a C++ standard older than C++14, make sure to use the manipulator only if the stream is an instance of mi::base::Log_stream, otherwise your program will crash. With C++14 and later, these manipulators will be ignored if the stream is not an instance of mi::base::Log_stream.
template<typename C , typename T >
std::basic_ostream<C, T>& mi::base::fatal ( std::basic_ostream< C, T > &  ostream)

Manipulator for mi::base::Log_stream.

Flushes the buffer if not empty, and sets the log level of the next message to MESSAGE_SEVERITY_FATAL.

Note
If you are using a C++ standard older than C++14, make sure to use the manipulator only if the stream is an instance of mi::base::Log_stream, otherwise your program will crash. With C++14 and later, these manipulators will be ignored if the stream is not an instance of mi::base::Log_stream.
template<typename C , typename T >
std::basic_ostream<C, T>& mi::base::info ( std::basic_ostream< C, T > &  ostream)

Manipulator for mi::base::Log_stream.

Flushes the buffer if not empty, and sets the log level of the next message to MESSAGE_SEVERITY_INFO.

Note
If you are using a C++ standard older than C++14, make sure to use the manipulator only if the stream is an instance of mi::base::Log_stream, otherwise your program will crash. With C++14 and later, these manipulators will be ignored if the stream is not an instance of mi::base::Log_stream.
template<typename C , typename T >
std::basic_ostream<C, T>& mi::base::verbose ( std::basic_ostream< C, T > &  ostream)

Manipulator for mi::base::Log_stream.

Flushes the buffer if not empty, and sets the log level of the next message to MESSAGE_SEVERITY_VERBOSE.

Note
If you are using a C++ standard older than C++14, make sure to use the manipulator only if the stream is an instance of mi::base::Log_stream, otherwise your program will crash. With C++14 and later, these manipulators will be ignored if the stream is not an instance of mi::base::Log_stream.
template<typename C , typename T >
std::basic_ostream<C, T>& mi::base::warning ( std::basic_ostream< C, T > &  ostream)

Manipulator for mi::base::Log_stream.

Flushes the buffer if not empty, and sets the log level of the next message to MESSAGE_SEVERITY_WARNING.

Note
If you are using a C++ standard older than C++14, make sure to use the manipulator only if the stream is an instance of mi::base::Log_stream, otherwise your program will crash. With C++14 and later, these manipulators will be ignored if the stream is not an instance of mi::base::Log_stream.