MCPcopy
hub / github.com/CodisLabs/codis / NewRollingFile

Function NewRollingFile

pkg/utils/log/rolling.go:105–110  ·  view source on GitHub ↗
(basePath string, rolling RollingFormat)

Source from the content-addressed store, hash-verified

103}
104
105func NewRollingFile(basePath string, rolling RollingFormat) (io.WriteCloser, error) {
106 if _, file := filepath.Split(basePath); file == "" {
107 return nil, errors.Errorf("invalid base-path = %s, file name is required", basePath)
108 }
109 return &rollingFile{basePath: basePath, rolling: rolling}, nil
110}

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected