$search

rosconsole.cpp File Reference

#include "ros/console.h"
#include "ros/assert.h"
#include <ros/time.h>
#include "log4cxx/appenderskeleton.h"
#include "log4cxx/spi/loggingevent.h"
#include "log4cxx/level.h"
#include "log4cxx/propertyconfigurator.h"
#include <boost/thread.hpp>
#include <boost/shared_array.hpp>
#include <boost/regex.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::Formatter
struct  ros::console::FunctionToken
struct  ros::console::LineToken
struct  ros::console::LoggerToken
struct  ros::console::MessageToken
struct  ros::console::PlaceHolderToken
class  ros::console::ROSConsoleStdioAppender
struct  ros::console::SeverityToken
class  ros::console::StaticInit
struct  ros::console::ThreadToken
struct  ros::console::TimeToken
struct  ros::console::Token

Namespaces

namespace  ros
namespace  ros::console

Defines

#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 boost::shared_ptr< Token > ros::console::TokenPtr
typedef std::vector
< LogLocation * > 
ros::console::V_LogLocation
typedef std::vector< TokenPtr > ros::console::V_Token

Functions

ROSCONSOLE_DECL void ros::console::checkLogLocationEnabled (LogLocation *loc)
 Internal.
void ros::console::checkLogLocationEnabledNoLock (LogLocation *loc)
TokenPtr ros::console::createTokenFromType (const std::string &type)
void ros::console::do_initialize ()
 For internal use only. Does the actual initialization of the rosconsole system. Should only be called once.
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 void ros::console::initialize ()
 Don't call this directly. Performs any required initialization/configuration. Happens automatically when using the macro API.
ROSCONSOLE_DECL void ros::console::initializeLogLocation (LogLocation *loc, const std::string &name, Level level)
 Internal.
ROSCONSOLE_DECL void ros::console::notifyLoggerLevelsChanged ()
 Tells the system that a logger's level has changed.
ROSCONSOLE_DECL void
ROSCONSOLE_DECL void 
ros::console::print (FilterBase *filter, log4cxx::Logger *logger, Level level, const std::stringstream &str, const char *file, int line, const char *function)
ROSCONSOLE_DECL void ros::console::print (FilterBase *filter, log4cxx::Logger *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.
ROSCONSOLE_DECL void ros::console::registerLogLocation (LogLocation *loc)
 Registers a logging location with the system.
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.
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

M_string ros::console::g_extra_fixed_tokens
const char * ros::console::g_format_string = "[${severity}] [${time}]: ${message}"
Formatter ros::console::g_formatter
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

Define Documentation

#define COLOR_GREEN   "\033[32m"

Definition at line 85 of file rosconsole.cpp.

#define COLOR_NORMAL   "\033[0m"

Definition at line 83 of file rosconsole.cpp.

#define COLOR_RED   "\033[31m"

Definition at line 84 of file rosconsole.cpp.

#define COLOR_YELLOW   "\033[33m"

Definition at line 86 of file rosconsole.cpp.

#define INITIAL_BUFFER_SIZE   4096

Definition at line 539 of file rosconsole.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rosconsole
Author(s): Josh Faust
autogenerated on Sat Mar 2 13:22:43 2013