A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/moby/moby/v2@v2.0.0-20250814210528-a34c4d9bb99f/daemon/logger/local below:

local package - github.com/moby/moby/v2/daemon/logger/local - Go Packages

Package local provides a logger implementation that stores logs on disk.

Log messages are encoded as protobufs with a header and footer for each message. The header and footer are big-endian binary encoded uint32 values which indicate the size of the log message. The header and footer of each message allows you to efficiently read through a file either forwards or in backwards (such as is the case when tailing a file)

Example log message format: [22][This is a log message.][22][28][This is another log message.][28]

LogOptKeys are the keys names used for log opts passed in to initialize the driver.

New creates a new local logger You must provide the `LogPath` in the passed in info argument, this is the file path that logs are written to.

ValidateLogOpt looks for log driver specific options.

type CreateConfig struct {
	DisableCompression bool
	MaxFileSize        int64
	MaxFileCount       int
}

CreateConfig is used to configure new instances of driver


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4