You can disable, log to console, log to default log file path or specify a log path at config file, environment or command line argument. Available options:
/var/log/dns-proxy-server.log
fileConfig File
{
...
"logFile": "console"
...
}
Environment
export MG_LOG_FILE=console
Command line argument
go run dns.go -log-file=console
You can change system log level using environment variable, config file, or command line argument, DPS will consider the parameters in that order, first is more important.
Available levels:
Environment
export MG_LOG_LEVEL=DEBUG
Config file
{
...
"logLevel": "DEBUG"
...
}
Command line argument
go run dns.go -log-level=DEBUG