return objectsPath;
}
+/**
+ * Retrieves the log path.
+ *
+ * @returns log path
+ */
+String CompatComponent::GetLogPath(void) const
+{
+ Value logPath = GetConfig()->Get("log_path");
+ if (logPath.IsEmpty())
+ return Application::GetLocalStateDir() + "/log/icinga2/compat";
+ else
+ return logPath;
+}
+
/**
* Retrieves the icinga.cmd path.
*
String GetStatusPath(void) const;
String GetObjectsPath(void) const;
+ String GetLogPath(void) const;
String GetCommandPath(void) const;
void DumpDowntimes(ofstream& fp, const DynamicObject::Ptr& owner);