Merge pull request #6295 from Icinga/feature/deprecate-compatlog

Deprecate compatlog feature
This commit is contained in:
Michael Friedrich 2018-05-09 17:52:55 +02:00 committed by GitHub
commit b641197361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -738,7 +738,8 @@ A detailed list on the available table attributes can be found in the [Livestatu
## Status Data Files <a id="status-data"></a>
> **Note**
> This feature is deprecated and will be removed with Icinga 2.10.0
>
> This feature is DEPRECATED and will be removed in Icinga 2 v2.10.
Icinga 1.x writes object configuration data and status data in a cyclic
interval to its `objects.cache` and `status.dat` files. Icinga 2 provides
@ -752,6 +753,10 @@ you can safely disable this feature.
## Compat Log Files <a id="compat-logging"></a>
> **Note**
>
> This feature is DEPRECATED and will be removed in Icinga 2 v2.10.
The Icinga 1.x log format is considered being the `Compat Log`
in Icinga 2 provided with the `CompatLogger` object.

View File

@ -63,6 +63,9 @@ void CompatLogger::Start(bool runtimeCreated)
Log(LogInformation, "CompatLogger")
<< "'" << GetName() << "' started.";
Log(LogWarning, "CompatLogger")
<< "The CompatLogger feature is DEPRECATED and will be removed in Icinga v2.10.";
Checkable::OnNewCheckResult.connect(std::bind(&CompatLogger::CheckResultHandler, this, _1, _2));
Checkable::OnNotificationSentToUser.connect(std::bind(&CompatLogger::NotificationSentHandler, this, _1, _2, _3, _4, _5, _6, _7, _8));
Downtime::OnDowntimeTriggered.connect(std::bind(&CompatLogger::TriggerDowntimeHandler, this, _1));

View File

@ -78,7 +78,7 @@ void StatusDataWriter::Start(bool runtimeCreated)
<< "'" << GetName() << "' started.";
Log(LogWarning, "StatusDataWriter")
<< "The StatusDataWriter feature is deprecated and will be removed with Icinga 2.10.0";
<< "The StatusDataWriter feature is DEPRECATED and will be removed in Icinga v2.10.";
m_ObjectsCacheOutdated = true;