Vastly improve logging

This commit is contained in:
Christopher Wellons
2019-02-03 08:09:21 -05:00
parent 81046bcdec
commit 112e5b303f
2 changed files with 77 additions and 29 deletions

View File

@@ -24,6 +24,12 @@ Usage: endlessh [-vh] [-d MSECS] [-m LIMIT] [-p PORT]
-v Print diagnostics to standard output (repeatable)
```
By default no log messages are produced. The first `-v` enables basic
logging and a second `-v` enables debug logging (noisy). All log
messages are sent to standard output.
endlessh -v >endlessh.log 2>endlessh.err
The purpose of limiting the number of clients (`-m`) is to avoid tying
up too many system resources with the tarpit. Clients beyond this limit
are left in the accept queue, not rejected instantly.