Documentation
¶
Index ¶
- Constants
- func Debugf(ctx context.Context, format string, v ...any)
- func Errorf(ctx context.Context, format string, v ...any)
- func Fatalf(ctx context.Context, format string, v ...any)
- func Infof(ctx context.Context, format string, v ...any)
- func Panicf(ctx context.Context, format string, v ...any)
- func Warnf(ctx context.Context, format string, v ...any)
- type Logger
- func (l *Logger) Debugf(ctx context.Context, format string, v ...any)
- func (l *Logger) Errorf(ctx context.Context, format string, v ...any)
- func (l *Logger) Fatalf(ctx context.Context, format string, v ...any)
- func (l *Logger) Infof(ctx context.Context, format string, v ...any)
- func (l *Logger) Panicf(ctx context.Context, format string, v ...any)
- func (l *Logger) Warnf(ctx context.Context, format string, v ...any)
- type ReopenableWriteSyncer
Constants ¶
View Source
const ( LevelConfigPath = "logger.level" PathConfigPath = "logger.path" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
var (
DefaultLogger *Logger
)
type ReopenableWriteSyncer ¶
type ReopenableWriteSyncer struct {
// contains filtered or unexported fields
}
ReopenableWriteSyncer
func NewReopenableWriteSyncer ¶
func NewReopenableWriteSyncer(path string) (*ReopenableWriteSyncer, error)
NewReopenableWriteSyncer
func (*ReopenableWriteSyncer) Sync ¶
func (ws *ReopenableWriteSyncer) Sync() error
sync调用时,需要明确的指定获取当前文件句柄同步
Click to show internal directories.
Click to hide internal directories.