changing logging method