---
title: "Enable debug logging"
canonical: "https://support.appfire.com/space/SNIP/1046708546/Enable%20debug%20logging"
format: markdown
---
> Macro (aura-html)

> ℹ️ Use REST API to change the logging level for the plugin package. The logging configuration in the Bitbucket admin area only affects Bitbucket packages.

## General debug

### Command to enable debug logging

```shell
curl -u admin:<password> -v -X PUT -H "Content-Type: application/json" <bitbucket url>/rest/api/latest/logs/logger/curl -u admin:<password> -v -X PUT -H "Content-Type: application/json" <bitbucket url>/rest/api/latest/logs/logger/com.simplenia.stash.plugins.snippets/debug
```

### Command to disable debug logging

```shell
curl -u admin:<password> -v -X PUT -H "Content-Type: application/json" <bitbucket url>/rest/api/latest/logs/logger/curl -u admin:<password> -v -X PUT -H "Content-Type: application/json" <bitbucket url>/rest/api/latest/logs/logger/com.simplenia.stash.plugins.snippets/debug
```

Where:

`admin:<password>` is the username and password for a Bitbucket administrator

`<bitbucket url>` is the url of your Bitbucket instance

> ✅ A successful command generates this entry in your Bitbucket log:  
> ✅ `com.simplenia.stash.plugins.snippets Switching to log level [debug]`
> ✅ 
> ✅ Confirm this entry is present before proceeding with further debug testing.