Documentation ¶
Index ¶
- Variables
- func DefaultDeciderMethod(methodName string, err error) bool
- func DefaultErrorToCode(err error) codes.Code
- func SetInContext(ctx context.Context, tags Tags) context.Context
- type ClientLoggingDecider
- type Decider
- type ErrorToCode
- type JsonPbMarshaler
- type LogConf
- type Logger
- type RecoveryHandlerContextFunc
- type ServerLoggingDecider
- type Tags
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NoopTags = &noopTags{}
)
Functions ¶
func DefaultDeciderMethod ¶
func DefaultErrorToCode ¶
Types ¶
type ClientLoggingDecider ¶
type ErrorToCode ¶
type JsonPbMarshaler ¶
type LogConf ¶
type LogConf struct { ServiceName string `toml:"service_name" mapstructure:"service_name" json:"service_name"` Mode string `toml:"mode" json:"mode"` Path string `toml:"path" json:"path"` Level string `toml:"level" json:"level"` Compress bool `toml:"compress" json:"compress"` KeepDays int `toml:"keep_days" mapstructure:"keep_days" json:"keep_days"` }
type ServerLoggingDecider ¶
type Tags ¶
type Tags interface { // Set sets the given key in the metadata tags. Set(key string, value interface{}) Tags // Has checks if the given key exists. Has(key string) bool // Values returns a map of key to values. // Do not modify the underlying map, please use Set instead. Values() map[string]interface{} }
Click to show internal directories.
Click to hide internal directories.