WIP add configurable logging functionality
WIP tune logging
WIP tune logging