diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-12-04 11:10:09 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-12-04 11:10:09 -0330 |
commit | 009d41ef816a6c26b0436c2f45f9fffff5f21cda (patch) | |
tree | 3b098a1e77fc46164a6d9695cfe55a46698e70a0 /cpp/src/Ice/Instance.cpp | |
parent | Fixed usage of icestormmigrate and upgradeicegrid.py (bug 3942) (diff) | |
download | ice-009d41ef816a6c26b0436c2f45f9fffff5f21cda.tar.bz2 ice-009d41ef816a6c26b0436c2f45f9fffff5f21cda.tar.xz ice-009d41ef816a6c26b0436c2f45f9fffff5f21cda.zip |
Bug 4336 - Add ability to set facility for syslog
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r-- | cpp/src/Ice/Instance.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp index 4b03230f149..7bb3fb1cdc6 100644 --- a/cpp/src/Ice/Instance.cpp +++ b/cpp/src/Ice/Instance.cpp @@ -906,7 +906,10 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi { throw InitializationException(__FILE__, __LINE__, "Both syslog and file logger cannot be enabled."); } - _initData.logger = new SysLoggerI(_initData.properties->getProperty("Ice.ProgramName")); + + _initData.logger = + new SysLoggerI(_initData.properties->getProperty("Ice.ProgramName"), + _initData.properties->getPropertyWithDefault("Ice.SyslogFacility", "LOG_USER")); } else #endif |