All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | List of all members
gazebo::common::FileLogger Class Reference

A logger that outputs messages to a file. More...

#include <Console.hh>

Inheritance diagram for gazebo::common::FileLogger:
Inheritance graph
[legend]
Collaboration diagram for gazebo::common::FileLogger:
Collaboration graph
[legend]

Classes

class  Buffer
 String buffer for the file logger. More...
 

Public Member Functions

 FileLogger (const std::string &_filename="")
 Constructor. More...
 
virtual ~FileLogger ()
 Destructor. More...
 
void Init (const std::string &_filename)
 Initialize the file logger. More...
 
virtual FileLoggeroperator() ()
 Output a filename and line number, then return a reference to the logger. More...
 
virtual FileLoggeroperator() (const std::string &_file, int _line)
 Output a filename and line number, then return a reference to the logger. More...
 

Detailed Description

A logger that outputs messages to a file.

Constructor & Destructor Documentation

gazebo::common::FileLogger::FileLogger ( const std::string &  _filename = "")

Constructor.

Parameters
[in]_filenameFilename to write into. If empty, FileLogger::Init must be called separately.
virtual gazebo::common::FileLogger::~FileLogger ( )
virtual

Destructor.

Member Function Documentation

void gazebo::common::FileLogger::Init ( const std::string &  _filename)

Initialize the file logger.

Parameters
[in]_filenameName and path of the log file to write output into.
virtual FileLogger& gazebo::common::FileLogger::operator() ( )
virtual

Output a filename and line number, then return a reference to the logger.

Returns
Reference to this logger.
virtual FileLogger& gazebo::common::FileLogger::operator() ( const std::string &  _file,
int  _line 
)
virtual

Output a filename and line number, then return a reference to the logger.

Parameters
[in]_fileFilename to output.
[in]_lineLine number in the _file.
Returns
Reference to this logger.

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