Join the Kedro community

Updated yesterday

Best Way to Overwrite Instead of Appending the Log Files

what is the best way to overwrite instead of appending the log files? my logging.yml looks like this
EDIT: just adding mode: w did the trick

N
1 comment

Noted that you may not want to just overwrite in every run, since you want to keep records for more than a single run. What may be better is to keep a rotating log file which will automatically create a new file when it's getting too big.

If it's ergonomic for you, you can also have a separate log file that only keep the last run.

Add a reply
Sign up and join the conversation on Slack