File: doc.go

package info (click to toggle)
docker.io 20.10.24%2Bdfsg1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates
  • size: 60,824 kB
  • sloc: sh: 5,621; makefile: 593; ansic: 179; python: 162; asm: 7
file content (9 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
// 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]
package local // import "github.com/docker/docker/daemon/logger/local"