Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MaximumFileSize (0.06 sec)

  1. internal/logger/logrotate.go

    type Options struct {
    	// Directory defines the directory where log files will be written to.
    	// If the directory does not exist, it will be created.
    	Directory string
    
    	// MaximumFileSize defines the maximum size of each log file in bytes.
    	MaximumFileSize int64
    
    	// FileNameFunc specifies the name a new file will take.
    	// FileNameFunc must ensure collisions in filenames do not occur.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. cmd/server-main.go

    			return fmt.Sprintf("%s-%s.log", ctx.String("log-prefix"), fmt.Sprintf("%X", time.Now().UTC().UnixNano()))
    		}
    	}
    
    	output, err := logger.NewDir(logger.Options{
    		Directory:       lgDirAbs,
    		MaximumFileSize: int64(lgSize),
    		Compress:        ctx.Bool("log-compress"),
    		FileNameFunc:    fileNameFunc,
    	})
    	if err != nil {
    		return nil, err
    	}
    	logger.EnableJSON()
    	return output, nil
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue May 27 15:18:36 UTC 2025
    - 35.9K bytes
    - Viewed (4)
Back to top