in src/preprocessor.py [0:0]
def write_to_file(log, filename): with open(f"/opt/ml/processing/output/{filename}.log", "a") as f: f.write(log + '\n')