Fix logger get last method