logger improvement