summaryrefslogtreecommitdiffstats
path: root/apps
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 /apps
parentdcac58f473789dd07e9094e61f819aef2fbc4b4a (diff)
downloaduscxml-047a35fc691a348008cbfbf4c3d7722a6ec4f93e.zip
uscxml-047a35fc691a348008cbfbf4c3d7722a6ec4f93e.tar.gz
uscxml-047a35fc691a348008cbfbf4c3d7722a6ec4f93e.tar.bz2
Custom logging for interpreters
Diffstat (limited to 'apps')
-rw-r--r--apps/uscxml-browser.cpp4
-rw-r--r--apps/uscxml-transform.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/uscxml-browser.cpp b/apps/uscxml-browser.cpp
index 99f646f..8ab5524 100644
--- a/apps/uscxml-browser.cpp
+++ b/apps/uscxml-browser.cpp
@@ -56,7 +56,7 @@ int main(int argc, char** argv) {
InterpreterOptions* currOptions = options.interpreters[0].second;
std::string documentURL = options.interpreters[0].first;
- LOG(USCXML_INFO) << "Processing " << documentURL;
+ LOGD(USCXML_INFO) << "Processing " << documentURL;
try {
Interpreter interpreter = Interpreter::fromURL(documentURL);
@@ -82,7 +82,7 @@ int main(int argc, char** argv) {
interpreters.push_back(interpreter);
} else {
- LOG(USCXML_ERROR) << "Cannot create interpreter from " << documentURL;
+ LOGD(USCXML_ERROR) << "Cannot create interpreter from " << documentURL;
}
} catch (Event e) {
std::cout << e << std::endl;
diff --git a/apps/uscxml-transform.cpp b/apps/uscxml-transform.cpp
index 0cf538c..2b440ff 100644
--- a/apps/uscxml-transform.cpp
+++ b/apps/uscxml-transform.cpp
@@ -211,7 +211,7 @@ int main(int argc, char** argv) {
Interpreter interpreter;
try {
if (inputFile.size() == 0 || inputFile == "-") {
- LOG(USCXML_INFO) << "Reading SCXML from STDIN";
+ LOGD(USCXML_INFO) << "Reading SCXML from STDIN";
std::stringstream ss;
std::string line;
while (std::getline(std::cin, line)) {
@@ -254,7 +254,7 @@ int main(int argc, char** argv) {
}
if (!interpreter) {
- LOG(USCXML_ERROR) << "Cannot create interpreter from " << inputFile;
+ LOGD(USCXML_ERROR) << "Cannot create interpreter from " << inputFile;
exit(EXIT_FAILURE);
}