Public Member Functions | Private Attributes | 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]

Public Member Functions

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...
 
 OutputHandlerFile (const char *filename)
 The name of the file in which to save the message data. More...
 
virtual ~OutputHandlerFile (void)
 
- Public Member Functions inherited from console_bridge::OutputHandler
 OutputHandler (void)
 
virtual ~OutputHandler (void)
 

Private Attributes

FILE * file_
 The file to save to. More...
 

Detailed Description

Implementation of OutputHandler that saves messages in a file.

Definition at line 157 of file console.h.

Constructor & Destructor Documentation

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

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

Definition at line 181 of file console.cpp.

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

Definition at line 193 of file console.cpp.

Member Function Documentation

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

Implements console_bridge::OutputHandler.

Definition at line 200 of file console.cpp.

Member Data Documentation

FILE* console_bridge::OutputHandlerFile::file_
private

The file to save to.

Definition at line 171 of file console.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:36