mirror of https://github.com/Icinga/icinga2.git
Cleaned up syslog class.
This commit is contained in:
parent
50ffb492b9
commit
3fa6531b3d
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue