trim logging