Commit d492d105 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: wrap logger messages in swig

No related merge requests found
Showing with 9 additions and 0 deletions
+9 -0
...@@ -72,6 +72,15 @@ public: ...@@ -72,6 +72,15 @@ public:
virtual void AddLogOutput(itkLogOutput *output); virtual void AddLogOutput(itkLogOutput *output);
static Logger * Instance(); static Logger * Instance();
void ResetOutputs(); void ResetOutputs();
// Wrap message methods so we can print stuff from Python
void Debug(std::string const & message);
void Info(std::string const & message);
void Warning(std::string const & message);
void Critical(std::string const & message);
void Error(std::string const & message);
void Fatal(std::string const & message);
protected: protected:
Logger(); Logger();
virtual ~Logger(); virtual ~Logger();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment