Documentation ¶
Index ¶
Constants ¶
View Source
const ( JSONLogFileName = "json.log" JSONFileLogDriverName logger.LogDriverType = "json-file" )
constants for json log file
Variables ¶
This section is empty.
Functions ¶
func NewJSONFileLog ¶
func NewJSONFileLog(info logger.LogDriverInfo, configOpts ...logger.LogConfigOption) (logger.LogDriver, error)
NewJSONFileLog creates a new LogDriver instance that produces JSON-formatted logs.
func WithMaxFiles ¶
func WithMaxFiles(maxFiles int) logger.LogConfigOption
WithMaxFiles sets the maximum number of log files per container.
func WithMaxSize ¶
func WithMaxSize(maxSize int64) logger.LogConfigOption
WithMaxSize sets the maximum size per log file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.