Set logging file right