use StreamLog to output messages.

This commit is contained in:
Liu Ming 2016-05-19 09:48:12 +08:00
parent 3028e819c6
commit b5e78ab1ec

View File

@ -92,6 +92,9 @@ try
std::string logFile = baseName + ".SATFUNCLOG";
std::shared_ptr<EclipsePRTLog> prtLog = std::make_shared<EclipsePRTLog>(logFile, Log::DefaultMessageTypes);
OpmLog::addBackend( "ECLIPSEPRTLOG" , prtLog );
std::shared_ptr<StreamLog> streamLog = std::make_shared<EclipsePRTLog>(std::cout, Log::DefaultMessageTypes);
OpmLog::addBackend( "STREAMLOG" , streamLog );
streamLog->setMessageLimiter(std::make_shared<MessageLimiter>(10));
Opm::time::StopWatch timer;
timer.start();
RelpermDiagnostics diagnostic;