The train defect logger for FGW trains