You can set the location of a custom logback file on the command line like this:
_JAVA_OPTIONS="-Dlogback.configurationFile=my-script-logback.xml" daml script ...
You can get a starter file to customize from ~/.daml/sdk/x.y.z/daml-sdk/script-logback.xml
.
It works the same way for daml sandbox, of course.