Enable debug logging for ODK-Central?

I would like to see what internals are going on in the server. How can I enable DEBUG logging for a docker-compose setup?

1 Like

I'm sure this is answered elsewhere and is an ancient thread, but it came up first on Google for me.

In theory this should be possible with:

LOG_LEVEL: DEBUG

Ref: https://github.com/getodk/central-backend/blob/afa039773d4b07c5c0cac5afb149ddb9cf5bca13/test/e2e/util/logger.js#L2

1 Like

Shouldn’t this be configurable in docker-compose.yml? I wanted to see DEBUG logs for testing something, but I don’t know how to do that from scratch using info spwoodcock provided

The post I made above is incorrect.

The linked code snippet is actually only for the automated testing suite.

It doesn’t look like Central has a way to configure debug level logging.

Perhaps this could be proposed to the team, if it’s helpful?

1 Like