acceptable-knife-37130
08/06/2025, 4:05 PM# Current Implementation
run = flyte.run(main, x_list=list(range(10)))
# Suggestion
run = flyte.run(main, x_list=list(range(10),logger,log_level))
Does it sound fair if we could pass a logger to the function, so we can get a detailed trace and place the logger file on a location of our choice.
We would also need a log_level [INFO,DEBUG,ERROR] for the level of verbosity that is required
Flyte CLI flyte --help
has flyte -vvv get logs <run-name>
I don’t see anything like that for python code.freezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-airport-6809
acceptable-knife-37130
08/06/2025, 4:20 PMacceptable-knife-37130
08/06/2025, 5:23 PMStreamHandler
/ RichHandler
and no FileHandler
. What if someone needs store/keep the logs of the run for audit and compliance.
I would suggest that for logging we should have arguments like log_stream=True (for streaming the logs to console) and log_file_loc=“some location, if not absolute put it in current directory”. That way it will give a way to get the files into a location if required or if people want they can stream it/pipe it to a file python main.py > log.txt
Moreover i think we should RichHandler(console=sys.stdout)
currently it outputs to std.err so ``python main.py > log.txt` will not work until the pipe both std.err and std.out to a fileacceptable-knife-37130
08/06/2025, 5:41 PMfreezing-airport-6809