package
2.1.0
Repository: https://github.com/huawei/csm.git
Documentation: pkg.go.dev

# Functions

AddContext ensures appending context info in log.
AddField add value into field.
Close ensures closing output stream.
Debugf ensures output of formatted debug logs.
Debugln ensures output of Debug logs.
EnsureGRPCContext ensures adding request id in incoming unary grpc context.
EnsureStreamGRPCContext ensures adding request id in incoming stream grpc context.
Errorf ensures output of formatted error logs.
Errorln ensures output of error logs.
Fatalf ensures output of formatted fatal logs.
Fatalln ensures output of fatal logs.
Flush ensures to commit current content of logging stream.
GetXuanWuRequestID get xuanWuRequestID.
HandleRequestId is used to handle the requestId when the context is transferred between services via grpc.
Infof ensures output of formatted info logs.
Infoln ensures output of info logs.
InitLogging configures logging.
NewServerStreamWithContext returns a new serverStreamWithContext.
SetRequestInfo is used to set the context with requestID value.
Warningf ensures output of formatted warning logs.
Warningln ensures output of warning logs.

# Structs

ConsoleHook sends log entries to stdout/stderr.
FileHook sends log entries to a file.
PlainTextFormatter is a formatter to ensure formatted logging output.

# Interfaces

Logger exposes logging functionality.
LoggingInterface is an interface exposes logging functionality.