// ********************************************************************** // // Copyright (c) 2001 // ZeroC, Inc. // Huntsville, AL, USA // // All Rights Reserved // // ********************************************************************** #include #include using namespace std; using namespace Ice; using namespace IceInternal; void Ice::SysLoggerI::trace(const string& category, const string& message) { IceUtil::Mutex::Lock sync(*this); string s = category + ": " + message; syslog(LOG_INFO, "%s", s.c_str()); } void Ice::SysLoggerI::warning(const string& message) { IceUtil::Mutex::Lock sync(*this); syslog(LOG_WARNING, "%s", message.c_str()); } void Ice::SysLoggerI::error(const string& message) { IceUtil::Mutex::Lock sync(*this); syslog(LOG_ERR, "%s", message.c_str()); }