iMSTK
Interactive Medical Simulation Toolkit
|
Public Member Functions | |
LoggerG3 (const LoggerG3 &)=delete | |
LoggerG3 & | operator= (const LoggerG3 &)=delete |
LoggerG3 (LoggerG3 &&)=delete | |
LoggerG3 & | operator= (LoggerG3 &&)=delete |
std::unique_ptr< StdoutSinkHandle > | addStdoutSink () |
Add a sink that logs to standard output. | |
std::unique_ptr< FileSinkHandle > | addFileSink (const std::string &name, const std::string &path="./") |
Add a sink that logs to file. | |
template<typename T , typename DefaultLogCall > | |
std::unique_ptr< g3::SinkHandle< T > > | addSink (std::unique_ptr< T > real_sink, DefaultLogCall call) |
Add your own sink. | |
void | initialize () |
Create and initialize the logger. | |
void | destroy () |
Manual destruction of the logger members. | |
Static Public Member Functions | |
static LoggerG3 & | getInstance () |
Gets logger instances without sinks, creates if doesn't exist yet. | |
static LoggerG3 & | startLogger () |
Starts logger with default sinks, use getInstance to create a logger with no sinks. | |
Definition at line 45 of file imstkLoggerG3.h.