Classes | Namespaces | Macros | Typedefs | Functions | Variables
rosconsole.cpp File Reference
#include "ros/console.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
 
 ros::console::impl
 

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::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)
 
bool ros::console::impl::get_loggers (std::map< std::string, levels::Level > &loggers)
 
void * ros::console::impl::getHandle (const std::string &name)
 
std::string ros::console::impl::getName (void *handle)
 
void ros::console::impl::initialize ()
 
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...
 
bool ros::console::impl::isEnabledFor (void *handle,::ros::console::Level level)
 
ROSCONSOLE_DECL void ros::console::notifyLoggerLevelsChanged ()
 Tells the system that a logger's level has changed. More...
 
void ros::console::impl::print (void *handle,::ros::console::Level level, const char *str, const char *file, const char *function, int line)
 
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)
 
void ros::console::impl::register_appender (LogAppender *appender)
 
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)
 
bool ros::console::impl::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 ()
 
void ros::console::impl::shutdown ()
 
ROSCONSOLE_DECL void ros::console::vformatToBuffer (boost::shared_array< char > &buffer, size_t &buffer_size, const char *fmt, va_list args)
 

Variables

M_string ros::console::g_extra_fixed_tokens
 
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
 

Macro Definition Documentation

#define COLOR_GREEN   "\033[32m"

Definition at line 105 of file rosconsole.cpp.

#define COLOR_NORMAL   "\033[0m"

Definition at line 103 of file rosconsole.cpp.

#define COLOR_RED   "\033[31m"

Definition at line 104 of file rosconsole.cpp.

#define COLOR_YELLOW   "\033[33m"

Definition at line 106 of file rosconsole.cpp.

#define INITIAL_BUFFER_SIZE   4096

Definition at line 485 of file rosconsole.cpp.



rosconsole
Author(s): Josh Faust
autogenerated on Wed Mar 21 2018 07:13:15