console_bridge_dev  master
It is a ROS-independent, pure CMake (i.e. non-catkin and non-rosbuild package) that provides logging calls that mirror those found in rosconsole, but for applications that are not necessarily using ROS.
All Classes Namespaces Files Functions Variables Modules Pages
Public Member Functions | List of all members
console_bridge::OutputHandlerFile Class Reference

Implementation of OutputHandler that saves messages in a file. More...

#include <console.h>

Inheritance diagram for console_bridge::OutputHandlerFile:
Inheritance graph
[legend]
Collaboration diagram for console_bridge::OutputHandlerFile:
Collaboration graph
[legend]

Public Member Functions

 OutputHandlerFile (const char *filename)
 The name of the file in which to save the message data. More...
 
virtual ~OutputHandlerFile (void)
 
virtual void log (const std::string &text, LogLevel level, const char *filename, int line)
 log a message to the output handler with the given text and logging level from a specific file and line number More...
 
- Public Member Functions inherited from console_bridge::OutputHandler
 OutputHandler (void)
 
virtual ~OutputHandler (void)
 

Detailed Description

Implementation of OutputHandler that saves messages in a file.

Constructor & Destructor Documentation

◆ OutputHandlerFile()

console_bridge::OutputHandlerFile::OutputHandlerFile ( const char *  filename)
explicit

The name of the file in which to save the message data.

◆ ~OutputHandlerFile()

virtual console_bridge::OutputHandlerFile::~OutputHandlerFile ( void  )
virtual

Member Function Documentation

◆ log()

virtual void console_bridge::OutputHandlerFile::log ( const std::string &  text,
LogLevel  level,
const char *  filename,
int  line 
)
virtual

log a message to the output handler with the given text and logging level from a specific file and line number

Parameters
textto log
levelconsole_bridge log level
filenameof the output log
line

Implements console_bridge::OutputHandler.


The documentation for this class was generated from the following file: