# Set logging options for daml script calls?

**URL:** <https://forum.canton.network/t/set-logging-options-for-daml-script-calls/7372>\
**Category:** App Development\
**Tags:** daml-script\
**Created:** [September 3, 2024, 2:04pm UTC](https://forum.canton.network/t/set-logging-options-for-daml-script-calls/7372 "2024-09-03T14:04:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![WallaceKelly](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/wallacekelly/32/5046_2.png) [@WallaceKelly](https://forum.canton.network/u/WallaceKelly)\
**Post date:** [September 3, 2024, 2:49pm UTC](https://forum.canton.network/t/set-logging-options-for-daml-script-calls/7372/3 "2024-09-03T14:49:20Z")

</div>

You can set the location of a custom logback file on the command line like this:

```haskell
_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](https://discuss.daml.com/t/using-a-custom-logback-xml-for-the-sandbox/154/7), of course.

---

_[View the full topic](https://forum.canton.network/t/set-logging-options-for-daml-script-calls/7372)._
