mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
Add RootPath field back (#20488)
Signed-off-by: yah01 <yang.cen@zilliz.com> Signed-off-by: yah01 <yang.cen@zilliz.com>
This commit is contained in:
parent
7537dbfa37
commit
663bdf3399
@ -26,6 +26,8 @@ const (
|
||||
|
||||
// FileLogConfig serializes file log related config in toml/json.
|
||||
type FileLogConfig struct {
|
||||
// Log rootpath
|
||||
RootPath string `toml:"rootpath" json:"rootpath"`
|
||||
// Log filename, leave empty to disable file log.
|
||||
Filename string `toml:"filename" json:"filename"`
|
||||
// Max size for a single file, in MB.
|
||||
|
@ -162,6 +162,7 @@ func SetupLogger(cfg *log.Config) {
|
||||
wrapper := &zapWrapper{logger, logLevel}
|
||||
grpclog.SetLoggerV2(wrapper)
|
||||
|
||||
log.Info("Log directory", zap.String("configDir", cfg.File.RootPath))
|
||||
log.Info("Set log file to ", zap.String("path", cfg.File.Filename))
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user