@@ -57,12 +57,12 @@ func getDefaultRetentionConfig(maxLogs int) RetentionConfig {
5757
5858 // Base retention strategy
5959 baseConfig := map [LogLevel ]int {
60- Fatal : maxLogs * 20 / 100 , // 20% for Fatal
61- Error : maxLogs * 25 / 100 , // 25% for Error
62- Warn : maxLogs * 20 / 100 , // 20% for Warn
63- Info : maxLogs * 20 / 100 , // 20% for Info
64- Debug : maxLogs * 10 / 100 , // 10% for Debug
65- Trace : maxLogs * 5 / 100 , // 5% for Trace
60+ Fatal : maxLogs ,
61+ Error : maxLogs ,
62+ Warn : maxLogs ,
63+ Info : maxLogs ,
64+ Debug : maxLogs ,
65+ Trace : maxLogs ,
6666 }
6767
6868 // Ensure minimum of 1 for each level
@@ -186,18 +186,18 @@ func (b *BufferedLogger) ScaleRetentionByLogLevel() {
186186 defer b .mu .Unlock ()
187187
188188 // Calculate scaling factor based on current log level
189- var scaleFactor float64 = 1.0
189+ var scaleFactor float64
190190 switch {
191191 case b .logLevel >= Trace4 :
192- scaleFactor = 3.0 // Very verbose, keep lots of logs
192+ scaleFactor = 1000 // Very verbose, keep lots of logs
193193 case b .logLevel >= Trace2 :
194- scaleFactor = 2.5
194+ scaleFactor = 100
195195 case b .logLevel >= Trace :
196- scaleFactor = 2.0
196+ scaleFactor = 10
197197 case b .logLevel >= Debug :
198- scaleFactor = 1.5
198+ scaleFactor = 2
199199 default :
200- scaleFactor = 1.0 // Base retention for Info and below
200+ scaleFactor = 1.0 // Base retention for Info and below
201201 }
202202
203203 // Apply scaling to all configured levels
0 commit comments