![]() |
OpenVDB 14.0.0
|
The sink installed by default, writing to std::cerr. More...
#include <openvdb/util/logging.h>
Public Types | |
| using | Ptr = std::shared_ptr<Sink> |
Public Member Functions | |
| ConsoleSink (bool useColor=stderrIsTerminal()) | |
| bool | useColor () const |
| void | setUseColor (bool) |
| void | append (Level, const std::string &message, const char *file, int line) override |
| const std::string & | name () const |
| Level | threshold () const |
| void | setThreshold (Level) |
Static Public Member Functions | |
| static const char * | defaultName () |
| The name under which this sink is registered. | |
| static bool | stderrIsTerminal () |
| Return true if stderr is connected to a terminal. | |
The sink installed by default, writing to std::cerr.
|
explicit |
|
overridevirtual |
| level | Severity of the message. |
| message | The formatted message text, without a trailing newline. |
| file | Source file the message was logged from, may be null. |
| line | Line in file, or 0 if unknown. |
Implements Sink.
|
static |
The name under which this sink is registered.
|
inherited |
|
inherited |
| void setUseColor | ( | bool | ) |
|
static |
Return true if stderr is connected to a terminal.
|
inherited |
| bool useColor | ( | ) | const |