NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
console.cpp File Reference
#include <nvbio/basic/console.h>
#include <string>
#include <stdarg.h>

Go to the source code of this file.

Functions

std::string retokenize (const char *format, const char *prefix)
 
void set_verbosity (Verbosity level)
 
void log_visible (FILE *stream, const char *format,...)
 
void log_info (FILE *stream, const char *format,...)
 
void log_stats (FILE *stream, const char *format,...)
 
void log_verbose (FILE *stream, const char *format,...)
 
void log_debug (FILE *stream, const char *format,...)
 
void log_warning (FILE *stream, const char *format,...)
 
void log_error (FILE *stream, const char *format,...)
 
void log_visible_cont (FILE *stream, const char *format,...)
 
void log_info_cont (FILE *stream, const char *format,...)
 
void log_stats_cont (FILE *stream, const char *format,...)
 
void log_verbose_cont (FILE *stream, const char *format,...)
 
void log_debug_cont (FILE *stream, const char *format,...)
 
void log_warning_cont (FILE *stream, const char *format,...)
 
void log_error_cont (FILE *stream, const char *format,...)
 
void log_visible_nl (FILE *stream)
 
void log_info_nl (FILE *stream)
 
void log_stats_nl (FILE *stream)
 
void log_verbose_nl (FILE *stream)
 
void log_debug_nl (FILE *stream)
 
void log_warning_nl (FILE *stream)
 
void log_error_nl (FILE *stream)
 

Variables

const char * TEXT_BRIGHT_BLUE = "\033[01;34m"
 
const char * TEXT_BRIGHT_MAGENTA = "\033[01;35m"
 
const char * TEXT_BRIGHT_RED = "\033[01;31m"
 
const char * TEXT_CYAN = "\033[22;36m"
 
const char * TEXT_BLUE = "\033[22;34m"
 
const char * TEXT_RED = "\033[22;31m"
 
const char * TEXT_GREEN = "\033[22;32m"
 
const char * TEXT_BRIGHT = "\033[01;37m"
 
const char * TEXT_NORMAL = "\033[22;37m"
 
Verbosity s_verbosity = V_VERBOSE
 

Function Documentation

std::string retokenize ( const char *  format,
const char *  prefix 
)

Definition at line 31 of file console.cpp.

Variable Documentation

Verbosity s_verbosity = V_VERBOSE

Definition at line 312 of file console.cpp.

const char* TEXT_BLUE = "\033[22;34m"

Definition at line 306 of file console.cpp.

const char* TEXT_BRIGHT = "\033[01;37m"

Definition at line 309 of file console.cpp.

const char* TEXT_BRIGHT_BLUE = "\033[01;34m"

Definition at line 302 of file console.cpp.

const char* TEXT_BRIGHT_MAGENTA = "\033[01;35m"

Definition at line 303 of file console.cpp.

const char* TEXT_BRIGHT_RED = "\033[01;31m"

Definition at line 304 of file console.cpp.

const char* TEXT_CYAN = "\033[22;36m"

Definition at line 305 of file console.cpp.

const char* TEXT_GREEN = "\033[22;32m"

Definition at line 308 of file console.cpp.

const char* TEXT_NORMAL = "\033[22;37m"

Definition at line 310 of file console.cpp.

const char* TEXT_RED = "\033[22;31m"

Definition at line 307 of file console.cpp.