log into the file

did anybody konwns how to write the log into a file instead of print it on the screen,in production env? thanks

Does piping to the file work?
In general if you run it under Docker, Systemd or some other manager of sorts, it will collect log output from stdout/stderr for you.

good suggestion