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/logtail
Brad Fitzpatrick d852c616c6 logtail: fix Logger.Write return result
io.Writer says you need to write completely on err=nil. (the result
int should be the same as the input buffer length)

We weren't doing that. We used to, but at some point the verbose
filtering was modifying buf before the final return of len(buf).

We've been getting lucky probably, that callers haven't looked at our
results and turned us into a short write error.

Updates #cleanup
Updates tailscale/corp#15664

Change-Id: I01e765ba35b86b759819e38e0072eceb9d10d75c
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
1 year ago
..
backoff logtail: use tstime (#8607) 1 year ago
example all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 2 years ago
filch adjust build tags for tamago 1 year ago
.gitignore
README.md
api.md all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 2 years ago
buffer.go all: update copyright and license headers 2 years ago
logtail.go logtail: fix Logger.Write return result 1 year ago
logtail_test.go logtail: fix Logger.Write return result 1 year ago

README.md

Tailscale Logs Service

This github repository contains libraries, documentation, and examples for working with the public API of the tailscale logs service.

For a very quick introduction to the core features, read the API docs and peruse the logs reprocessing example.

For more information, write to info@tailscale.io.