MCPcopy Create free account
hub / github.com/coderabbit214/document-ai / getLogWriter

Function getLogWriter

pkg/common/log.go:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func getLogWriter() zapcore.WriteSyncer {
47 lumberJackLogger := &lumberjack.Logger{
48 Filename: "./log/error.log",
49 MaxSize: 1,
50 MaxBackups: 5,
51 MaxAge: 30,
52 Compress: false,
53 }
54 return zapcore.AddSync(lumberJackLogger)
55}

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected