jsonfile

package
v0.1.0-M4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: Apache-2.0, EPL-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL