Add configurable logging