diff options
Diffstat (limited to 'src/uscxml/interpreter/InterpreterImpl.h')
-rw-r--r-- | src/uscxml/interpreter/InterpreterImpl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/uscxml/interpreter/InterpreterImpl.h b/src/uscxml/interpreter/InterpreterImpl.h index ade2a91..f4fe93e 100644 --- a/src/uscxml/interpreter/InterpreterImpl.h +++ b/src/uscxml/interpreter/InterpreterImpl.h @@ -225,6 +225,8 @@ public: /** --- */ void setActionLanguage(const ActionLanguage& al) { + if (al.logger) // we intialized _logger as the default logger already + _logger = al.logger; _execContent = al.execContent; _microStepper = al.microStepper; _dataModel = al.dataModel; @@ -237,6 +239,10 @@ public: _factory = factory; } + virtual Logger getLogger() { + return _logger; + } + static std::map<std::string, std::weak_ptr<InterpreterImpl> > getInstances(); virtual XERCESC_NS::DOMDocument* getDocument() { @@ -281,6 +287,7 @@ protected: MicroStep _microStepper; DataModel _dataModel; ContentExecutor _execContent; + Logger _logger = Logger::getDefault(); InterpreterState _state; |