logger performance enhancement