Skip to main content
The mullvad log command controls logging behavior and output verbosity for the Mullvad VPN daemon.

Usage

Subcommands

get

Display current log settings.
Example output:

set-level

Set the logging level.
Available levels:
  • error - Only errors
  • warn - Warnings and errors
  • info - Informational messages, warnings, and errors (default)
  • debug - Debug information plus all above
  • trace - Very verbose tracing plus all above

set-file

Enable or disable logging to file.

Examples

Check current settings

Enable debug logging

Useful for troubleshooting connection issues.

Enable trace logging

Trace logging is very verbose and can impact performance. Only use when debugging specific issues.

Reset to default

Disable file logging

Reduces disk I/O but makes troubleshooting harder.

Log file locations

When file logging is enabled: Linux:
  • /var/log/mullvad-vpn/daemon.log
  • Systemd journal: journalctl -u mullvad-daemon
macOS:
  • /var/log/mullvad-vpn/daemon.log
Windows:
  • C:\ProgramData\Mullvad VPN\daemon.log

Log rotation

Logs are automatically rotated:
  • Maximum size: 10 MB per file
  • Keeps 3 rotated files
  • Old files are compressed or deleted

When to use different log levels

error

Use when:
  • Disk space is critically low
  • You only need to see failures
  • Performance is paramount

warn (default)

Use for:
  • Normal operation
  • Production systems
  • When you don’t need detailed diagnostics

info

Use when:
  • You want to see connection events
  • Monitoring configuration changes
  • General operational visibility

debug

Use when:
  • Troubleshooting connection issues
  • Debugging relay selection
  • Investigating firewall rules
  • Working with Mullvad support

trace

Use when:
  • Debugging specific protocol issues
  • Analyzing packet flow
  • Detailed performance analysis
  • Requested by Mullvad developers

Debugging workflow

Privacy considerations

Logs may contain:
  • Relay server IP addresses
  • Connection timestamps
  • Network interface names
  • System configuration details
Logs do NOT contain:
  • Your account number
  • DNS queries
  • Websites visited
  • Tunnel traffic content
Mullvad’s privacy policy applies to logs. If sharing logs with support, review them first to ensure you’re comfortable with the information disclosed.

Environment variable override

For daemon-level logging configuration, use environment variables:
Add:
See Environment Variables for more options.

Performance impact

Exit status

  • 0 - Success
  • 1 - Invalid log level or daemon error