Shankara created SCB-2021:
-----------------------------

             Summary: How to set service-comb log retention
                 Key: SCB-2021
                 URL: https://issues.apache.org/jira/browse/SCB-2021
             Project: Apache ServiceComb
          Issue Type: Bug
          Components: Service-Center
            Reporter: Shankara


Hi All,

  In app.conf there are some configuration is there for log, like  
log_rotate_size,  log_backup_count, But I am not able to find configuration for 
log retention.

But in the code it is mentioned that LogBackupAge configuration will be used 
for rentention.

if len(c.LoggerFile) > 0 {
 syncer = zapcore.AddSync(&lumberjack.Logger{
 Filename: c.LoggerFile,
 MaxSize: c.LogRotateSize,
 MaxBackups: c.LogBackupCount,
 {color:#FF0000}MaxAge: c.LogBackupAge,{color}
 LocalTime: true,
 Compress: true,
 })
} else {
 syncer = StdoutSyncer
}

 

I tried to configure in app.conf like log_backup_age, but looks like it is not 
taking any effect.

Please let me know how to configure log rentention



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to