mullvad log command controls logging behavior and output verbosity for the Mullvad VPN daemon.
Usage
Subcommands
get
Display current log settings.set-level
Set the logging level.error- Only errorswarn- Warnings and errorsinfo- Informational messages, warnings, and errors (default)debug- Debug information plus all abovetrace- Very verbose tracing plus all above
set-file
Enable or disable logging to file.Examples
Check current settings
Enable debug logging
Enable trace logging
Reset to default
Disable file logging
Log file locations
When file logging is enabled: Linux:/var/log/mullvad-vpn/daemon.log- Systemd journal:
journalctl -u mullvad-daemon
/var/log/mullvad-vpn/daemon.log
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
- 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:Performance impact
| Level | CPU Impact | Disk I/O | Disk Space |
|---|---|---|---|
| error | Minimal | Minimal | Very low |
| warn | Minimal | Low | Low |
| info | Low | Low | Moderate |
| debug | Moderate | Moderate | High |
| trace | High | High | Very high |
Exit status
0- Success1- Invalid log level or daemon error
Related commands
factory-reset- Clears all logsstatus- Check connection status
Related documentation
- Environment Variables - Daemon-level logging config
- File Paths - Log file locations
- Troubleshooting - Using logs to debug issues