Logging

Comprehensive logging reform.