WIP. Logger for every modules

This commit is contained in:
emeric
2014-08-27 21:25:02 +02:00
parent 6afc4ac291
commit 07624995e7
42 changed files with 292 additions and 223 deletions
+4 -3
View File
@@ -6,6 +6,8 @@
#include "av/InputFormatContext.hpp"
#include "logger/Logger.hpp"
#include "Utils.hpp"
namespace MetaData
@@ -134,17 +136,16 @@ AvFormat::parse(const boost::filesystem::path& p, Items& items)
}
/* else
std::cout << "key = " << it->first << ", value = " << it->second << std::endl;
LMS_LOG(MOD_METADATA, SEV_DEBUG) << "key = " << it->first << ", value = " << it->second;
*/
}
}
catch(std::exception &e)
{
std::cerr << "Parsing of '" << p << "' failed!" << std::endl;
LMS_LOG(MOD_METADATA, SEV_ERROR) << "Parsing of '" << p << "' failed!";
}
}
} // namespace MetaData