简体   繁体   中英

How to Write logs into new file from Code Repository in foundry Platform

In code Repository when I am previewing or testing *.py file I need to put all logs into a file if already file exists logs should be appended to that file with time. Can anyone please suggest a way for this?

Explanation: I was doing pytest to test my code functionality so I want to keep test results into file that can be of.txt as I will specify the path of the file the file need to be created in the path specified with test results in it, if again tests are runned then that test results should be appended to the same file with timestamp.

The CI shouldn't push things to git. To be honest I don't even know if it has write permissions. This means that you can't write your test results to a file within a foundry CI run. The test results are always available in the CI runs though, you just need to open the checks to see them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM