Cleaned up syslog class.

This commit is contained in:
Gunnar Beutner 2012-07-10 13:32:15 +02:00
parent 50ffb492b9
commit 3fa6531b3d
3 changed files with 4 additions and 6 deletions

View File

@ -7,11 +7,9 @@ using namespace icinga;
*
* @param minSeverity Minimum severity for log messages.
*/
SyslogLogger::SyslogLogger(const string& ident, LogSeverity minSeverity)
SyslogLogger::SyslogLogger(LogSeverity minSeverity)
: Logger(minSeverity)
{
// openlog(ident.c_str(), 0, LOG_USER);
}
{ }
/**
* Processes a log entry and outputs it to syslog.

View File

@ -10,7 +10,7 @@ namespace icinga
class SyslogLogger : public Logger
{
public:
SyslogLogger(const string& ident, LogSeverity minSeverity);
SyslogLogger(LogSeverity minSeverity);
protected:
virtual void ProcessLogEntry(const LogEntry& entry);

View File

@ -39,7 +39,7 @@ int IcingaApplication::Main(const vector<string>& args)
ConsoleLogger::Ptr consoleLogger = boost::make_shared<ConsoleLogger>(LogInformation);
Logger::RegisterLogger(consoleLogger);
SyslogLogger::Ptr syslogLogger = boost::make_shared<SyslogLogger>("icinga", LogDebug);
SyslogLogger::Ptr syslogLogger = boost::make_shared<SyslogLogger>(LogInformation);
Logger::RegisterLogger(syslogLogger);
#ifdef _WIN32