overhaul the logging system using different logging levels