According to this dcoumentation, you just can change the file where spring shell stores logs via the spring.shell.history.name property. The YAML equivalent would be
spring.shell.history.name
spring: shell: history: name: <YOUR/LOG/PATH.log>