This PR removes the asl and eventlog systems to simplify the build dependencies. The eventlog mode was never used anywhere and I'm not sure if it's implemented correctly. The asl mode is being used in Docker Desktop but this isn't a good idea: the system logs are difficult to filter and full of spam. It's much easier to simply log to stderr and rely on another tool to send the logs to the correct destination (e.g. docker logs)
At the same time the output format has been changed to resemble other Go programs for consistency, e.g.:
time="2021-04-17T10:56:51Z" level=info msg="usernet: Increasing preemptive thread pool size to 1024 threads"
Plus a few error logs have been downgraded to info where they are normal e.g. /etc/resolv.conf doesn't exist on Windows; receiving EOF from a disconnecting client is normal.
Previously we supported 3 log "destinations":
quiet
: stderrasl
: the Apple System Logeventlog
: the Windows event logThis PR removes the
asl
andeventlog
systems to simplify the build dependencies. Theeventlog
mode was never used anywhere and I'm not sure if it's implemented correctly. Theasl
mode is being used in Docker Desktop but this isn't a good idea: the system logs are difficult to filter and full of spam. It's much easier to simply log to stderr and rely on another tool to send the logs to the correct destination (e.g.docker logs
)At the same time the output format has been changed to resemble other Go programs for consistency, e.g.:
Plus a few error logs have been downgraded to info where they are normal e.g.
/etc/resolv.conf
doesn't exist on Windows; receivingEOF
from a disconnecting client is normal.