-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.go
56 lines (38 loc) · 1.75 KB
/
logging.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
47
48
49
50
51
52
53
54
55
56
package defs
import "log"
const (
// DebugLogLevelTag is used for debugf logger calls
DebugLogLevelTag = "debug"
// InfoLogLevelTag is used for infof logger calls
InfoLogLevelTag = "info"
// WarnLogLevelTag is used for errorf logger calls
WarnLogLevelTag = "warn"
// ErrorLogLevelTag is used for errorf logger calls
ErrorLogLevelTag = "error"
// MainLogPrefix is the log prefix for the main go routine
MainLogPrefix = "[beacon api] "
// RegistrationAPILogPrefix log prefix used by the registration api
RegistrationAPILogPrefix = "[registrations api] "
// FeedbackAPILogPrefix log prefix used by the feedback api
FeedbackAPILogPrefix = "[feedback api] "
// DeviceMessagesAPILogPrefix log prefix used by tokens api
DeviceMessagesAPILogPrefix = "[device messages api] "
// DevicesAPILogPrefix log prefix used by tokens api
DevicesAPILogPrefix = "[devices api] "
// TokensAPILogPrefix log prefix used by tokens api
TokensAPILogPrefix = "[tokens api] "
// ServerKeyLogPrefix log prefix used by server key
ServerKeyLogPrefix = "[server key] "
// RegistryLogPrefix is the log prefix for the device registry
RegistryLogPrefix = "[device registry] "
// ServerRuntimeLogPrefix is the log prefix for the http server runtime
ServerRuntimeLogPrefix = "[server runtime] "
// DeviceConnectionLogPrefix is the log prefix for the device connections
DeviceConnectionLogPrefix = "[device connection] "
// DeviceControlLogPrefix is the log prefix for the device control processor
DeviceControlLogPrefix = "[device control] "
// DeviceFeedbackLogPrefix is the log prefix for the device feeback processor
DeviceFeedbackLogPrefix = "[device feedback] "
// DefaultLoggerFlags is the bitmask used to create default logging
DefaultLoggerFlags = log.Ldate | log.Ltime
)