Work in progress refactoring the logging framework.