Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuditLog ¶
func AuditLog(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Types ¶
type Option ¶
type Option struct {
// DisableReportCaller will remove the report caller info if true
DisableReportCaller bool
// Formatter will format the log message as output
Formatter logrus.Formatter
// Outer defines where the log info outputs
Outer io.Writer
// Hooks 钩子回调
Hooks []hook.Hook
// Environment the env string
Environment string
StackSkip int
}
Option defines a set of options
Click to show internal directories.
Click to hide internal directories.