[WIP] Refactor cookbook/console/logging

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes
| Applies to    | >= 2.3
| Fixed tickets | #2534