First attempt to provide an API to the old logging functionality