tailscale/tsnet
Maisem Ali 486a423716 tsnet: split user facing and backend logging
This adds a new `UserLogf` field to the `Server` struct.
When set this any logs generated by Server are logged using
`UserLogf` and all spammy backend logs are logged to `Logf`.

If it `UserLogf` is unset, we default to `log.Printf` and
if `Logf` is unset we discard all the spammy logs.

Fixes #12094

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2024-05-10 15:29:13 -07:00
..
example tsnet: split user facing and backend logging 2024-05-10 15:29:13 -07:00
example_tshello_test.go tsnet: add examples (#8289) 2023-07-19 12:36:49 -04:00
example_tsnet_test.go tsnet: split user facing and backend logging 2024-05-10 15:29:13 -07:00
tsnet.go tsnet: split user facing and backend logging 2024-05-10 15:29:13 -07:00
tsnet_test.go tsnet: split user facing and backend logging 2024-05-10 15:29:13 -07:00