restructuring logger 5