Adding CompatLogger object. #7225.

https://dev.icinga.org/issues/7225