Documentation ¶
Index ¶
- func InitLog(path string, level string) log.Logger
- type Logger
- func (g *Logger) Debug(args ...interface{})
- func (g *Logger) DebugContextf(ctx context.Context, format string, args ...interface{})
- func (g *Logger) Debugf(format string, args ...interface{})
- func (g *Logger) Error(args ...interface{})
- func (g *Logger) ErrorContextf(ctx context.Context, format string, args ...interface{})
- func (g *Logger) Errorf(format string, args ...interface{})
- func (g *Logger) Fatal(args ...interface{})
- func (g *Logger) FatalContextf(ctx context.Context, format string, args ...interface{})
- func (g *Logger) Fatalf(format string, args ...interface{})
- func (g *Logger) Info(args ...interface{})
- func (g *Logger) InfoContextf(ctx context.Context, format string, args ...interface{})
- func (g *Logger) Infof(format string, args ...interface{})
- func (g *Logger) Sync() error
- func (g *Logger) Warn(args ...interface{})
- func (g *Logger) WarnContextf(ctx context.Context, format string, args ...interface{})
- func (g *Logger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger grpc 日志实现
func (*Logger) DebugContextf ¶
DebugContextf .
func (*Logger) ErrorContextf ¶
ErrorContextf .
func (*Logger) FatalContextf ¶
FatalContextf .
func (*Logger) InfoContextf ¶
InfoContextf .
func (*Logger) WarnContextf ¶
WarnContextf .
Click to show internal directories.
Click to hide internal directories.