diff options
author | Jose <jose@zeroc.com> | 2015-02-06 16:36:35 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-02-06 16:36:35 +0100 |
commit | 7989d477ab862b80150f485073dbe73970ee4e38 (patch) | |
tree | 614d54c78a92a1272b2e7f654bbfb0d40dc30894 /cpp | |
parent | Exception handling fix for Communicator admin methods (diff) | |
download | ice-7989d477ab862b80150f485073dbe73970ee4e38.tar.bz2 ice-7989d477ab862b80150f485073dbe73970ee4e38.tar.xz ice-7989d477ab862b80150f485073dbe73970ee4e38.zip |
Fixed (ICE-6295) - Logger for WinRT applications
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/Ice/LoggerI.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/Ice/LoggerI.cpp b/cpp/src/Ice/LoggerI.cpp index 5d267426107..f3e87785a59 100644 --- a/cpp/src/Ice/LoggerI.cpp +++ b/cpp/src/Ice/LoggerI.cpp @@ -148,9 +148,9 @@ Ice::LoggerI::write(const string& message, bool indent) } else { -#if !defined(_WIN32) || defined(ICE_OS_WINRT) - cerr << s << endl; -#else +#if defined(ICE_OS_WINRT) + OutputDebugString(IceUtil::stringToWstring(s).c_str()); +#elif defined(_WIN32) // // Convert the message from the native narrow string encoding to the console // code page encoding for printing. If the _convert member is set to false @@ -194,6 +194,8 @@ Ice::LoggerI::write(const string& message, bool indent) } fflush(stderr); } +#else + cerr << s << endl; #endif } } |