You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
logger.go types/logger: add Context and related helpers 3 years ago
logger_test.go types/logger: add Context and related helpers 3 years ago
rusage.go types/logger: move RusagePrefixLog to logger package, disable by default 4 years ago
rusage_stub.go all: fix some js/wasm compilation issues 3 years ago
rusage_syscall.go all: fix some js/wasm compilation issues 3 years ago
tokenbucket.go types/logger: rate limited: more hysteresis, better messages. 3 years ago