diff options
author | Marc Laukien <marc@zeroc.com> | 2001-08-23 13:09:40 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-08-23 13:09:40 +0000 |
commit | 812240bb3342e0263d1677afff5299e6041f8bf1 (patch) | |
tree | f8b5542b425bab68672c3ee08b3090fd5d063335 /cpp/src | |
parent | lots of stuff (diff) | |
download | ice-812240bb3342e0263d1677afff5299e6041f8bf1.tar.bz2 ice-812240bb3342e0263d1677afff5299e6041f8bf1.tar.xz ice-812240bb3342e0263d1677afff5299e6041f8bf1.zip |
fix
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/Instance.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp index 0f2ac185da6..8ba230afc88 100644 --- a/cpp/src/Ice/Instance.cpp +++ b/cpp/src/Ice/Instance.cpp @@ -18,10 +18,13 @@ #include <Ice/LocalException.h> #include <Ice/Properties.h> #include <Ice/LoggerI.h> -#include <Ice/SysLoggerI.h> #include <Ice/PicklerI.h> #ifndef WIN32 +# include <Ice/SysLoggerI.h> +#endif + +#ifndef WIN32 # include <csignal> # include <syslog.h> # include <sys/time.h> @@ -242,6 +245,7 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Prope { _communicator = communicator; _properties = properties; +#ifndef WIN32 string value = properties->getProperty("Ice.UseSyslog"); if (atoi(value.c_str()) >= 1) { @@ -251,6 +255,9 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Prope { _logger = new LoggerI; } +#else + _logger = new LoggerI; +#endif _traceLevels = new TraceLevels(_properties); _proxyFactory = new ProxyFactory(this); _threadPool = new ThreadPool(this); |