[Other doc versions]
[Doc downloads]
This page describes how to enable debug level logging in Stash. Stash logs can be found in .<STASH_HOME>/logs
When using the standard Stash distribution, logs for the Tomcat webserver that hosts Stash can be found in .<Stash installation directory>/log
To enable debug logging whenever Stash is started, edit the file (if this file doesn't exist then you should create it) and add the following line:<STASH_HOME>/stash-config.properties
logging.logger.ROOT=DEBUG
To enable debug logging for the root logger once Stash has been started, run the following command in your terminal:
curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/rootLogger/debug # e.g. curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/rest/api/latest/logs/rootLogger/debug
To enable debug logging for a specific logger, run the following command in your terminal:
curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/logger/<LOGGER_NAME>/debug # e.g. curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/rest/api/latest/logs/logger/com.atlassian.crowd/debug