As suggested in a comment, the solution is using the logger configuration to redirect stdout to an external file or disable totally stdout/stderr logs.