Add comprehensive logging