Proper config of logging