[BUGFIX] Fix SQL logging in Production context
The logger factory in Objects.yaml refers to a Setting directive which
with this change is present in Production context. Before, the Settings
could not be found, resulting in a NULL argument where an array is
expected as soon as query logging was enabled in Production.
Some cleanup to logging settings along the way.
Releases: 1.1, 1.2