Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MapAllowedLevels = map[string][]string{
"DEBUG": {"INFO", "DEBUG", "WARN", "ERROR"},
"ERROR": {"ERROR"},
"INFO": {"INFO", "WARN", "ERROR"},
"WARN": {"WARN", "ERROR"},
}
MapAllowedLevels allows to map a given level to a list of allowed level. Convention taken from go-kit/level v0.10.0 https://godoc.org/github.com/go-kit/kit/log/level#AllowAll.
Functions ¶
func DefaultCodeToLevelGRPC ¶
func DefaultCodeToLevelGRPC(c codes.Code) grpc_logging.Level
DefaultCodeToLevelGRPC is the helper mapper that maps gRPC Response codes to log levels.
Types ¶
type Registerable ¶
type RegisterableFunc ¶
type Server ¶
Server is a wrapper around the http.Server
func NewServer ¶
func NewServer(reg *prometheus.Registry) *Server
Click to show internal directories.
Click to hide internal directories.