• sudeep's avatar
    cmd/geth: enable log rotation (#26843) · 7076ae00
    sudeep authored
    This change enables log rotation, which can be activated using the flag --log.rotate. Additional parameters that can be given are: 
    
      - log.maxsize to set maximum size before files are rotated,
      - log.maxbackups to set how many files are retailed, 
      - log.maxage to configure max age of rotated files, 
      - log.compress whether to compress rotated files
    
    The way to configure location of the logfile(s) is left unchanged, via the `log.logfile` parameter.  
    
    ---------
    Co-authored-by: 's avatarMartin Holst Swende <martin@swende.se>
    7076ae00
go.mod 5.86 KB