tailscale/cmd
Brad Fitzpatrick 57dd247376 cmd/tailscaled, logpolicy, logtail: support log levels
Log levels can now be specified with "[v1] " or "[v2] " substrings
that are then stripped and filtered at the final logger. This follows
our existing "[unexpected]" etc convention and doesn't require a
wholesale reworking of our logging at the moment.

cmd/tailscaled then gets a new --verbose=N flag to take a log level
that controls what gets logged to stderr (and thus systemd, syslog,
etc). Logtail is unaffected by --verbose.

This commit doesn't add annotations to any existing log prints. That
is in the next commit.

Updates #924
Updates #282

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-12-21 12:59:33 -08:00
..
cloner ipn: use cmd/cloner for Prefs.Clone 2020-10-19 12:15:49 -07:00
derper Change some os.IsNotExist to errors.Is(err, os.ErrNotExist) for non-os errors. 2020-11-02 08:33:34 -08:00
microproxy cmd/microproxy: add -insecure flag 2020-09-15 15:07:56 -07:00
mkpkg cmd/mkpkg: support adding empty directories. 2020-05-04 17:57:13 -04:00
tailscale Merge branch 'main' into report-status-systemd 2020-12-15 08:40:46 -05:00
tailscaled cmd/tailscaled, logpolicy, logtail: support log levels 2020-12-21 12:59:33 -08:00
tsshd wgengine/monitor: don't call LinkChange when interfaces look unchanged 2020-03-10 11:03:19 -07:00