Logging module and tests.