-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
logfields.go
46 lines (32 loc) · 1.19 KB
/
logfields.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium
package kvstore
import (
"github.com/cilium/cilium/pkg/logging"
"github.com/cilium/cilium/pkg/logging/logfields"
)
var log = logging.DefaultLogger.WithField(logfields.LogSubsys, "kvstore")
const (
// fieldKVStoreModule is the name of the kvstore backend (etcd or consul)
fieldKVStoreModule = "module"
// key revision
fieldRev = "revision"
// fieldPrefix is the prefix of the key used in the operation
fieldPrefix = "prefix"
// fieldKey is the prefix of the key used in the operation
fieldKey = "key"
// fieldValue is the prefix of the key used in the operation
fieldValue = "value"
// fieldCondition is the condition that requires to be met
fieldCondition = "condition"
// fieldNumEntries is the number of entries in the result
fieldNumEntries = "numEntries"
// fieldRemainingEntries is the number of entries still to be retrieved
fieldRemainingEntries = "remainingEntries"
// fieldAttachLease is true if the key must be attached to a lease
fieldAttachLease = "attachLease"
// FieldUser identifies a user in the kvstore
FieldUser = logfields.User
// FieldRole identifies a role in the kvstore
FieldRole = "role"
)