summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-12-12 15:19:14 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-12-12 15:19:14 (GMT)
commit047a35fc691a348008cbfbf4c3d7722a6ec4f93e (patch)
tree362a55496c4185b0be5966073d43d00e1b0e27de /test/src
parentdcac58f473789dd07e9094e61f819aef2fbc4b4a (diff)
downloaduscxml-047a35fc691a348008cbfbf4c3d7722a6ec4f93e.zip
uscxml-047a35fc691a348008cbfbf4c3d7722a6ec4f93e.tar.gz
uscxml-047a35fc691a348008cbfbf4c3d7722a6ec4f93e.tar.bz2
Custom logging for interpreters
Diffstat (limited to 'test/src')
-rw-r--r--test/src/test-gen-c.cpp4
-rw-r--r--test/src/test-stress.cpp2
-rw-r--r--test/src/test-url.cpp2
3 files changed, 6 insertions, 2 deletions
diff --git a/test/src/test-gen-c.cpp b/test/src/test-gen-c.cpp
index 2931a13..acf1246 100644
--- a/test/src/test-gen-c.cpp
+++ b/test/src/test-gen-c.cpp
@@ -55,6 +55,10 @@ public:
init();
}
+ virtual Logger getLogger() {
+ return Logger::getDefault();
+ }
+
const std::string& getName() {
return name;
}
diff --git a/test/src/test-stress.cpp b/test/src/test-stress.cpp
index d3253b4..afb94a6 100644
--- a/test/src/test-stress.cpp
+++ b/test/src/test-stress.cpp
@@ -79,7 +79,7 @@ int main(int argc, char** argv) {
Interpreter interpreter = Interpreter::fromURL(std::string(argv[optind]) + PATH_SEPERATOR + entryIter->first);
// Interpreter interpreter = Interpreter::fromURL("/Users/sradomski/Documents/TK/Code/uscxml/test/w3c/ecma/test422.scxml");
- LOG(USCXML_INFO) << "Processing " << interpreter.getImpl()->getBaseURL();
+ LOGD(USCXML_INFO) << "Processing " << interpreter.getImpl()->getBaseURL();
if (interpreter) {
interpreter.addMonitor(&vm);
diff --git a/test/src/test-url.cpp b/test/src/test-url.cpp
index 94c47e9..4d6cee8 100644
--- a/test/src/test-url.cpp
+++ b/test/src/test-url.cpp
@@ -145,7 +145,7 @@ int main(int argc, char** argv) {
try {
testFileURLs();
} catch (Event e) {
- LOG(USCXML_ERROR) << e;
+ LOGD(USCXML_ERROR) << e;
exit(EXIT_FAILURE);
}