Refining logging to avoid logfiles outside .frit directory.