Jetson Inference
DNN Vision Library
logging.h File Reference
#include "commandLine.h"
#include <stdio.h>
#include <string>

Go to the source code of this file.

Classes

class  Log
 Message logging with a variable level of output and destinations. More...
 

Macros

#define LOG_USAGE_STRING
 Standard command-line options able to be passed to videoOutput::Create() More...
 
#define GenericLogMessage(level, format, args...)   if( level <= Log::GetLevel() ) fprintf(Log::GetFile(), format, ## args)
 Log a printf-style message with the provided level. More...
 
#define LogError(format, args...)   GenericLogMessage(Log::ERROR, LOG_COLOR_RED LOG_LEVEL_PREFIX_ERROR format LOG_COLOR_RESET, ## args)
 Log a printf-style error message (Log::ERROR) More...
 
#define LogWarning(format, args...)   GenericLogMessage(Log::WARNING, LOG_COLOR_YELLOW LOG_LEVEL_PREFIX_WARNING format LOG_COLOR_RESET, ## args)
 Log a printf-style warning message (Log::WARNING) More...
 
#define LogSuccess(format, args...)   GenericLogMessage(Log::SUCCESS, LOG_COLOR_GREEN LOG_LEVEL_PREFIX_SUCCESS format LOG_COLOR_RESET, ## args)
 Log a printf-style success message (Log::SUCCESS) More...
 
#define LogInfo(format, args...)   GenericLogMessage(Log::INFO, LOG_LEVEL_PREFIX_INFO format, ## args)
 Log a printf-style info message (Log::INFO) More...
 
#define LogVerbose(format, args...)   GenericLogMessage(Log::VERBOSE, LOG_LEVEL_PREFIX_VERBOSE format, ## args)
 Log a printf-style verbose message (Log::VERBOSE) More...
 
#define LogDebug(format, args...)   GenericLogMessage(Log::DEBUG, LOG_LEVEL_PREFIX_DEBUG format, ## args)
 Log a printf-style debug message (Log::DEBUG) More...
 
Logging Internals
#define LOG_COLOR_RESET   "\033[0m"
 
#define LOG_COLOR_RED   "\033[0;31m"
 
#define LOG_COLOR_GREEN   "\033[0;32m"
 
#define LOG_COLOR_YELLOW   "\033[0;33m"
 
#define LOG_COLOR_BLUE   "\033[0;34m"
 
#define LOG_COLOR_MAGENTA   "\033[0;35m"
 
#define LOG_COLOR_CYAN   "\033[0;36m"
 
#define LOG_COLOR_LIGHT_GRAY   "\033[0;37m"
 
#define LOG_COLOR_DARK_GRAY   "\033[0;90m"
 
#define LOG_LEVEL_PREFIX_ERROR   ""
 
#define LOG_LEVEL_PREFIX_WARNING   ""
 
#define LOG_LEVEL_PREFIX_SUCCESS   ""
 
#define LOG_LEVEL_PREFIX_INFO   ""
 
#define LOG_LEVEL_PREFIX_VERBOSE   ""
 
#define LOG_LEVEL_PREFIX_DEBUG   ""
 

Macro Definition Documentation

◆ LOG_COLOR_BLUE

#define LOG_COLOR_BLUE   "\033[0;34m"

◆ LOG_COLOR_CYAN

#define LOG_COLOR_CYAN   "\033[0;36m"

◆ LOG_COLOR_DARK_GRAY

#define LOG_COLOR_DARK_GRAY   "\033[0;90m"

◆ LOG_COLOR_GREEN

#define LOG_COLOR_GREEN   "\033[0;32m"

◆ LOG_COLOR_LIGHT_GRAY

#define LOG_COLOR_LIGHT_GRAY   "\033[0;37m"

◆ LOG_COLOR_MAGENTA

#define LOG_COLOR_MAGENTA   "\033[0;35m"

◆ LOG_COLOR_RED

#define LOG_COLOR_RED   "\033[0;31m"

◆ LOG_COLOR_RESET

#define LOG_COLOR_RESET   "\033[0m"

◆ LOG_COLOR_YELLOW

#define LOG_COLOR_YELLOW   "\033[0;33m"

◆ LOG_LEVEL_PREFIX_DEBUG

#define LOG_LEVEL_PREFIX_DEBUG   ""

◆ LOG_LEVEL_PREFIX_ERROR

#define LOG_LEVEL_PREFIX_ERROR   ""

◆ LOG_LEVEL_PREFIX_INFO

#define LOG_LEVEL_PREFIX_INFO   ""

◆ LOG_LEVEL_PREFIX_SUCCESS

#define LOG_LEVEL_PREFIX_SUCCESS   ""

◆ LOG_LEVEL_PREFIX_VERBOSE

#define LOG_LEVEL_PREFIX_VERBOSE   ""

◆ LOG_LEVEL_PREFIX_WARNING

#define LOG_LEVEL_PREFIX_WARNING   ""