forked from urnetwork/connect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog.go
More file actions
27 lines (23 loc) · 955 Bytes
/
log.go
File metadata and controls
27 lines (23 loc) · 955 Bytes
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
package connect
import (
// "github.com/golang/glog"
)
// Logging level convention in the `connect` package and generally for BringYour network components:
// Info:
// essential events for abnormal behavior. This level should be silent on normal operation,
// with the exception of infrequent data that is useful for monitoring flows:
// - backpressure and connectivity timeouts
// - recoverable abnormal exits.
// This includes exits caused by external behavior such as bad messages.
// [glog V(1)]
// key events for trace debuggung and statistics:
// - start/end traces
// - key system events with ids that can be used to trace flows
// [glog V(2)]
// specific use-case logging
// Warning:
// recovered unexpected crash details
// Error:
// unexpected crash details
// Log messages should be concise and start with a unique [component] tag
// where component is the relevant part of the system.