add section on logging
polish logging chapter