Setup logging files automatically