Classes | Namespaces | Macros | Typedefs | Functions | Variables
rosconsole.cpp File Reference
#include "ros/console.h"
#include "ros/console_impl.h"
#include "ros/assert.h"
#include <ros/time.h>
#include <boost/thread.hpp>
#include <boost/shared_array.hpp>
#include <boost/regex.hpp>
#include <boost/make_shared.hpp>
#include <cstdarg>
#include <cstdlib>
#include <cstdio>
#include <memory>
#include <cstring>
#include <stdexcept>
Include dependency graph for rosconsole.cpp:

Go to the source code of this file.

Classes

struct  ros::console::FileToken
 
struct  ros::console::FixedMapToken
 
struct  ros::console::FixedToken
 
struct  ros::console::FunctionToken
 
struct  ros::console::LineToken
 
struct  ros::console::LoggerToken
 
struct  ros::console::MessageToken
 
struct  ros::console::PlaceHolderToken
 
struct  ros::console::SeverityToken
 
class  ros::console::StaticInit
 
struct  ros::console::ThreadToken
 
struct  ros::console::TimeToken
 
struct  ros::console::WallTimeToken
 

Namespaces

 ros
 
 ros::console
 

Macros

#define COLOR_GREEN   "\033[32m"
 
#define COLOR_NORMAL   "\033[0m"
 
#define COLOR_RED   "\033[31m"
 
#define COLOR_YELLOW   "\033[33m"
 
#define INITIAL_BUFFER_SIZE   4096
 

Typedefs

typedef std::map< std::string, std::string > ros::console::M_string
 
typedef std::vector< LogLocation * > ros::console::V_LogLocation
 

Functions

void ros::console::_print (void *logger_handle, ::ros::console::Level level, const char *str, const char *file, const char *function, int line)
 
ROSCONSOLE_DECL void ros::console::checkLogLocationEnabled (LogLocation *loc)
 Internal. More...
 
void ros::console::checkLogLocationEnabledNoLock (LogLocation *loc)
 
TokenPtr ros::console::createTokenFromType (const std::string &type)
 
ROSCONSOLE_DECL void ros::console::deregister_appender (LogAppender *appender)
 
ROSCONSOLE_DECL void ros::console::formatToBuffer (boost::shared_array< char > &buffer, size_t &buffer_size, const char *fmt,...)
 
ROSCONSOLE_DECL std::string ros::console::formatToString (const char *fmt,...)
 
static boost::shared_array< char > ros::console::g_print_buffer (new char[INITIAL_BUFFER_SIZE])
 
ROSCONSOLE_DECL bool ros::console::get_loggers (std::map< std::string, levels::Level > &loggers)
 
ROSCONSOLE_DECL void ros::console::initialize ()
 Don't call this directly. Performs any required initialization/configuration. Happens automatically when using the macro API. More...
 
ROSCONSOLE_DECL void ros::console::initializeLogLocation (LogLocation *loc, const std::string &name, Level level)
 Internal. More...
 
ROSCONSOLE_DECL void ros::console::notifyLoggerLevelsChanged ()
 Tells the system that a logger's level has changed. More...
 
ROSCONSOLE_DECL void ros::console::print (FilterBase *filter, void *logger, Level level, const char *file, int line, const char *function, const char *fmt,...) ROSCONSOLE_PRINTF_ATTRIBUTE(7
 Don't call this directly. Use the ROS_LOG() macro instead. More...
 
ROSCONSOLE_DECL void ROSCONSOLE_DECL void ros::console::print (FilterBase *filter, void *logger, Level level, const std::stringstream &str, const char *file, int line, const char *function)
 
ROSCONSOLE_DECL void ros::console::register_appender (LogAppender *appender)
 
ROSCONSOLE_DECL void ros::console::registerLogLocation (LogLocation *loc)
 Registers a logging location with the system. More...
 
ROSCONSOLE_DECL bool ros::console::set_logger_level (const std::string &name, levels::Level level)
 
ROSCONSOLE_DECL void ros::console::setFixedFilterToken (const std::string &key, const std::string &val)
 
ROSCONSOLE_DECL void ros::console::setLogLocationLevel (LogLocation *loc, Level level)
 Internal. More...
 
ROSCONSOLE_DECL void ros::console::shutdown ()
 
ROSCONSOLE_DECL void ros::console::vformatToBuffer (boost::shared_array< char > &buffer, size_t &buffer_size, const char *fmt, va_list args)
 

Variables

bool ros::console::g_color = true
 
M_string ros::console::g_extra_fixed_tokens
 
bool ros::console::g_force_stdout_line_buffered = false
 
const char * ros::console::g_format_string = "[${severity}] [${time}]: ${message}"
 
boost::mutex ros::console::g_init_mutex
 
boost::mutex ros::console::g_locations_mutex
 
V_LogLocation ros::console::g_log_locations
 
static size_t ros::console::g_print_buffer_size = INITIAL_BUFFER_SIZE
 
static boost::mutex ros::console::g_print_mutex
 
static boost::thread::id ros::console::g_printing_thread_id
 
bool ros::console::g_shutting_down = false
 
StaticInit ros::console::g_static_init
 
bool ros::console::g_stdout_flush_failure_reported = false
 

Macro Definition Documentation

◆ COLOR_GREEN

#define COLOR_GREEN   "\033[32m"

Definition at line 83 of file rosconsole.cpp.

◆ COLOR_NORMAL

#define COLOR_NORMAL   "\033[0m"

Definition at line 81 of file rosconsole.cpp.

◆ COLOR_RED

#define COLOR_RED   "\033[31m"

Definition at line 82 of file rosconsole.cpp.

◆ COLOR_YELLOW

#define COLOR_YELLOW   "\033[33m"

Definition at line 84 of file rosconsole.cpp.

◆ INITIAL_BUFFER_SIZE

#define INITIAL_BUFFER_SIZE   4096

Definition at line 489 of file rosconsole.cpp.



rosconsole
Author(s): Josh Faust
autogenerated on Mon Feb 28 2022 23:30:41