diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-12-12 15:19:14 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-12-12 15:19:14 (GMT) |
commit | 047a35fc691a348008cbfbf4c3d7722a6ec4f93e (patch) | |
tree | 362a55496c4185b0be5966073d43d00e1b0e27de /src/uscxml/debug/DebuggerServlet.cpp | |
parent | dcac58f473789dd07e9094e61f819aef2fbc4b4a (diff) | |
download | uscxml-047a35fc691a348008cbfbf4c3d7722a6ec4f93e.zip uscxml-047a35fc691a348008cbfbf4c3d7722a6ec4f93e.tar.gz uscxml-047a35fc691a348008cbfbf4c3d7722a6ec4f93e.tar.bz2 |
Custom logging for interpreters
Diffstat (limited to 'src/uscxml/debug/DebuggerServlet.cpp')
-rw-r--r-- | src/uscxml/debug/DebuggerServlet.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/uscxml/debug/DebuggerServlet.cpp b/src/uscxml/debug/DebuggerServlet.cpp index 016d67c..56b43d5 100644 --- a/src/uscxml/debug/DebuggerServlet.cpp +++ b/src/uscxml/debug/DebuggerServlet.cpp @@ -238,6 +238,23 @@ void DebuggerServlet::processListSessions(const HTTPServer::Request& request) { returnData(request, replyData); } +std::shared_ptr<LoggerImpl> DebuggerServlet::create() { + assert(false); + return std::shared_ptr<LoggerImpl>(this); +} + +void DebuggerServlet::log(LogSeverity severity, const Event& event) { + pushData(std::shared_ptr<DebugSession>(), event.data); +} + +void DebuggerServlet::log(LogSeverity severity, const Data& data) { + pushData(std::shared_ptr<DebugSession>(), data); +} + +void DebuggerServlet::log(LogSeverity severity, const std::string& message) { + pushData(std::shared_ptr<DebugSession>(), Data(message)); +} + /* void DebuggerServlet::handle(const el::LogDispatchData* data) { } |