tailscale/types/logger
Josh Bleecher Snyder deb2f5e793 types/logger: add Context and related helpers
We often need both a log function and a context.
We can do this by adding the log function as a context value.
This commit adds helper glue to make that easy.
It is designed to allow incremental adoption.

Updates tailscale/corp#3138

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-11-30 15:18:21 -08:00
..
logger.go types/logger: add Context and related helpers 2021-11-30 15:18:21 -08:00
logger_test.go types/logger: add Context and related helpers 2021-11-30 15:18:21 -08:00
rusage.go types/logger: move RusagePrefixLog to logger package, disable by default 2020-10-19 07:56:23 -07:00
rusage_stub.go all: fix some js/wasm compilation issues 2021-10-20 10:06:16 -07:00
rusage_syscall.go all: fix some js/wasm compilation issues 2021-10-20 10:06:16 -07:00
tokenbucket.go types/logger: rate limited: more hysteresis, better messages. 2021-04-30 01:01:15 -04:00