mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 09:04:35 +02:00
Log something when the Filelogger has been started
Helps to see whether the logger object is active, spotted during #6445
This commit is contained in:
parent
7593d15e95
commit
7c2e999f1f
@ -51,6 +51,9 @@ void FileLogger::Start(bool runtimeCreated)
|
|||||||
Application::OnReopenLogs.connect(std::bind(&FileLogger::ReopenLogFile, this));
|
Application::OnReopenLogs.connect(std::bind(&FileLogger::ReopenLogFile, this));
|
||||||
|
|
||||||
ObjectImpl<FileLogger>::Start(runtimeCreated);
|
ObjectImpl<FileLogger>::Start(runtimeCreated);
|
||||||
|
|
||||||
|
Log(LogInformation, "FileLogger")
|
||||||
|
<< "'" << GetName() << "' started.";
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileLogger::ReopenLogFile()
|
void FileLogger::ReopenLogFile()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user