types/logger: add more reserved top level field names

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder 2022-02-18 14:50:50 -08:00 committed by Brad Fitzpatrick
parent f9a50779e2
commit 66f5aa6814

View File

@ -56,8 +56,8 @@ type jenc struct {
// JSON object that is logged. That is, if recType is "foo" and v is
// 123, the value logged is {"foo":123}.
//
// Do not use recType "logtail" or "v", with any case. Those are
// reserved for the logging system.
// Do not use recType "logtail", "v", "text", or "metrics", with any case.
// Those are reserved for the logging system.
//
// The level can be from 0 to 9. Levels from 1 to 9 are included in
// the logged JSON object, like {"foo":123,"v":2}.