From: Michael Friedrich Date: Thu, 19 Jul 2018 10:48:01 +0000 (+0200) Subject: Log something when the Filelogger has been started X-Git-Tag: v2.10.0~92^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c2e999f1f4e53f251bf8f9d57d0c692669539f6;p=icinga2 Log something when the Filelogger has been started Helps to see whether the logger object is active, spotted during #6445 --- diff --git a/lib/base/filelogger.cpp b/lib/base/filelogger.cpp index 5ae739d2e..28d1eac8d 100644 --- a/lib/base/filelogger.cpp +++ b/lib/base/filelogger.cpp @@ -51,6 +51,9 @@ void FileLogger::Start(bool runtimeCreated) Application::OnReopenLogs.connect(std::bind(&FileLogger::ReopenLogFile, this)); ObjectImpl::Start(runtimeCreated); + + Log(LogInformation, "FileLogger") + << "'" << GetName() << "' started."; } void FileLogger::ReopenLogFile()