![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <RDLog.h>
Public Member Functions | |
| CaptureLog (RDLogger log) | |
| ~CaptureLog () | |
| std::string | messages () const |
| Returns all messages captured since construction. | |
RAII class to capture messages from a given RDLogger.
The log is enabled when this object is constructed and its original enabled state is restored when this object is destroyed. The stream destination is also restored on destruction. Nesting is supported: inner captures shadow outer ones.
Example:
|
explicit |
Referenced by RDLog::CaptureErrorLog::CaptureErrorLog().
| RDLog::CaptureLog::~CaptureLog | ( | ) |
| std::string RDLog::CaptureLog::messages | ( | ) | const |
Returns all messages captured since construction.