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
+3 -1
View File
@@ -2,6 +2,8 @@
#include <stdexcept>
#include <iostream>
#include "logger/Logger.hpp"
#include "Codec.hpp"
Codec::Codec(enum CodecID codec, Type type )
@@ -13,7 +15,7 @@ Codec::Codec(enum CodecID codec, Type type )
_codec = avcodec_find_decoder(codec);
if (_codec == nullptr) {
std::cerr << "Codec constructor failed! codec = " << codec << ", type = " << type << std::endl;
LMS_LOG(MOD_AV, SEV_ERROR) << "Codec constructor failed! codec = " << codec << ", type = " << type;
throw std::runtime_error("can't find codec using this id!");
}
}