Add logging configurations

This pull request adds logging configurations in the agents and in the DM.
It also comes with some bug fixes that should have been pushes before.