Change logging level

At a glance
Goal: Adjust Dev Proxy logging verbosity to troubleshoot issues or reduce noise
Time: 2 minutes
Prerequisites: Set up Dev Proxy

By default, the proxy is set to log information level events. These events are messages not related to requests, only the events related to the working of Dev Proxy.

To change the default logging level, update the logLevel setting in the configuration file. Dev Proxy automatically reloads its configuration when you save changes, so you don't need to restart the proxy.

File: devproxyrc.json
Purpose: Set persistent logging level

{
  "logLevel": "debug"
}

To change the logging level at run time, use the --log-level command line option.

devproxy --log-level debug

For the list of available logging levels, see the Proxy settings page.

Note

When you use --output json, the logging level doesn't affect command results. Commands like status and stop always emit their result records, even when you set the logging level to warning or higher. For more information, see JSON output and results.

See also