Added structured logging

This commit is contained in:
Daniel Wolf
2016-03-01 21:57:05 +01:00
parent cdffb56613
commit 04ca644cca
7 changed files with 40 additions and 7 deletions

View File

@@ -12,6 +12,7 @@
#include "ProgressBar.h"
#include "logging.h"
#include <gsl_util.h>
#include <tools.h>
using std::exception;
using std::string;
@@ -41,10 +42,6 @@ unique_ptr<AudioStream> createAudioStream(path filePath) {
}
}
string formatDuration(duration<double> seconds) {
return fmt::format("{0:.2f}", seconds.count());
}
ptree createXmlTree(const path& filePath, const map<centiseconds, Phone>& phones, const map<centiseconds, Shape>& shapes) {
ptree tree;