Easy Navigation
Loading...
Searching...
No Matches
LogCapture Class Reference

Records the log messages (and their severity) emitted while it lives. One at a time. More...

#include <LogCapture.hpp>

Classes

struct  Message

Public Member Functions

size_t count (const std::vector< std::string > &parts, int severity=RCUTILS_LOG_SEVERITY_WARN) const
 Number of messages containing every one of parts (warnings by default).
std::vector< std::string > find (const std::vector< std::string > &parts, int severity=RCUTILS_LOG_SEVERITY_WARN) const
 Messages containing every one of parts, with severity severity (-1: any).
 LogCapture ()
 LogCapture (const LogCapture &)=delete
LogCapture & operator= (const LogCapture &)=delete
 ~LogCapture ()

Detailed Description

Records the log messages (and their severity) emitted while it lives. One at a time.

Constructor & Destructor Documentation

◆ LogCapture() [1/2]

◆ LogCapture() [2/2]

LogCapture ( const LogCapture & )
delete

◆ ~LogCapture()

~LogCapture ( )

Member Function Documentation

◆ count()

size_t count ( const std::vector< std::string > & parts,
int severity = RCUTILS_LOG_SEVERITY_WARN ) const

Number of messages containing every one of parts (warnings by default).

◆ find()

std::vector< std::string > find ( const std::vector< std::string > & parts,
int severity = RCUTILS_LOG_SEVERITY_WARN ) const

Messages containing every one of parts, with severity severity (-1: any).

◆ operator=()

LogCapture & operator= ( const LogCapture & )
delete

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