diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-04-27 07:41:43 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-04-27 07:42:40 (GMT) |
commit | 8015ce2701862e6977fe12cde839a35ddb4c32e5 (patch) | |
tree | b9e09526e0bb88e2b97d4998387e0322a497185c /src/uscxml/interpreter/StdOutLogger.cpp | |
parent | a925b941c640289ffd967cab457ab804de69399a (diff) | |
download | uscxml-8015ce2701862e6977fe12cde839a35ddb4c32e5.zip uscxml-8015ce2701862e6977fe12cde839a35ddb4c32e5.tar.gz uscxml-8015ce2701862e6977fe12cde839a35ddb4c32e5.tar.bz2 |
Fixed issue113 for real
Diffstat (limited to 'src/uscxml/interpreter/StdOutLogger.cpp')
-rw-r--r-- | src/uscxml/interpreter/StdOutLogger.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uscxml/interpreter/StdOutLogger.cpp b/src/uscxml/interpreter/StdOutLogger.cpp index 76a2169..152df1c 100644 --- a/src/uscxml/interpreter/StdOutLogger.cpp +++ b/src/uscxml/interpreter/StdOutLogger.cpp @@ -27,15 +27,15 @@ std::shared_ptr<LoggerImpl> StdOutLogger::create() { } void StdOutLogger::log(LogSeverity severity, const std::string& message) { - std::cout << (severity != USCXML_VERBATIM ? Logger::severityToString(severity) + ": " : "") << message << std::flush; + std::cout << (severity != USCXML_VERBATIM ? "[" + Logger::severityToString(severity) + "] " : "") << message << std::flush; } void StdOutLogger::log(LogSeverity severity, const Event& event) { - std::cout << (severity != USCXML_VERBATIM ? Logger::severityToString(severity) + ": " : "") << event << std::flush; + std::cout << (severity != USCXML_VERBATIM ? "[" + Logger::severityToString(severity) + "] " : "") << event << std::flush; } void StdOutLogger::log(LogSeverity severity, const Data& data) { - std::cout << (severity != USCXML_VERBATIM ? Logger::severityToString(severity) + ": " : "") << data << std::flush; + std::cout << (severity != USCXML_VERBATIM ? "[" + Logger::severityToString(severity) + "] " : "") << data << std::flush; } } |