diff --git a/src/Magnum/Platform/AndroidApplication.cpp b/src/Magnum/Platform/AndroidApplication.cpp index e1e7b0697..fc72af7ed 100644 --- a/src/Magnum/Platform/AndroidApplication.cpp +++ b/src/Magnum/Platform/AndroidApplication.cpp @@ -40,18 +40,18 @@ struct AndroidApplication::LogOutput { Utility::AndroidLogStreamBuffer debugBuffer, warningBuffer, errorBuffer; std::ostream debugStream, warningStream, errorStream; + Debug redirectDebug; + Warning redirectWarning; + Error redirectError; }; AndroidApplication::LogOutput::LogOutput(): debugBuffer(Utility::AndroidLogStreamBuffer::LogPriority::Info, "magnum"), warningBuffer(Utility::AndroidLogStreamBuffer::LogPriority::Warning, "magnum"), errorBuffer(Utility::AndroidLogStreamBuffer::LogPriority::Error, "magnum"), - debugStream(&debugBuffer), warningStream(&warningBuffer), errorStream(&errorBuffer) -{ - Debug::setOutput(&debugStream); - Warning::setOutput(&warningStream); - Error::setOutput(&errorStream); -} + debugStream(&debugBuffer), warningStream(&warningBuffer), errorStream(&errorBuffer), + redirectDebug{&debugStream}, redirectWarning{&warningStream}, redirectError{&errorStream} +{} #ifndef DOXYGEN_GENERATING_OUTPUT AndroidApplication::AndroidApplication(const Arguments& arguments): AndroidApplication{arguments, Configuration{}} {}