github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/daemon/logger/local/doc.go (about) 1 // Package local provides a logger implementation that stores logs on disk. 2 // 3 // Log messages are encoded as protobufs with a header and footer for each message. 4 // The header and footer are big-endian binary encoded uint32 values which indicate the size of the log message. 5 // The header and footer of each message allows you to efficiently read through a file either forwards or in 6 // backwards (such as is the case when tailing a file) 7 // 8 // Example log message format: [22][This is a log message.][22][28][This is another log message.][28] 9 package local // import "github.com/Prakhar-Agarwal-byte/moby/daemon/logger/local"