Mercurial > hg > orthanc
comparison Core/Logging.h @ 4005:7f9909062d9c
removed EnableEmscriptenLogging()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 06 Jun 2020 11:18:12 +0200 |
parents | 9b5ace33a00d |
children | f0ee3f1db775 |
comparison
equal
deleted
inserted
replaced
4004:9b5ace33a00d | 4005:7f9909062d9c |
---|---|
222 * This function must only be used by unit tests. | 222 * This function must only be used by unit tests. |
223 **/ | 223 **/ |
224 ORTHANC_PUBLIC void SetErrorWarnInfoLoggingStreams(std::ostream& errorStream, | 224 ORTHANC_PUBLIC void SetErrorWarnInfoLoggingStreams(std::ostream& errorStream, |
225 std::ostream& warningStream, | 225 std::ostream& warningStream, |
226 std::ostream& infoStream); | 226 std::ostream& infoStream); |
227 | |
228 #ifdef __EMSCRIPTEN__ | |
229 /** | |
230 This function will change the logging streams so that the logging functions | |
231 provided by emscripten html5.h API functions are used : it will change the | |
232 error_, warning_ and info_ stream objects so that their operator<< writes | |
233 into the browser console using emscripten_console_error(), | |
234 emscripten_console_warn() and emscripten_console_log(). This will allow for | |
235 logging levels to be correctly handled by the browser when the code executes | |
236 in Web Assembly | |
237 */ | |
238 ORTHANC_PUBLIC void EnableEmscriptenLogging(); | |
239 #endif | |
240 } | 227 } |
241 } | 228 } |
242 | 229 |
243 #endif | 230 #endif |