{"modulePath":"github.com/cloudquery/plugin-sdk/v2","version":"v2.5.4","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package logging\n\n## Variables\n\n```go\nvar (\n\tErrLogLineToLong = errors.New(\"log line too long, discarding\")\n)\n```\n\n## Functions\n\n```go\nfunc JSONToLog(l zerolog.Logger, msg map[string]any)\n```\n\n## Types\n\n```go\ntype LogReader struct {\n\t// contains filtered or unexported fields\n}\n```\nlogReader is a custom implementation similar to bufio.Scanner, but provides a way to handle lines (or tokens) that exceed the buffer size.\n\n```go\nfunc NewLogReader(reader io.ReadCloser) *LogReader\n```\nnewLogReader creates a new logReader to read log lines from an io.ReadCloser\n\n```go\nfunc (r *LogReader) NextLine() ([]byte, error)\n```\nNextLine reads and returns the next log line from the reader. An io.EOF error is returned if the end of the stream has been reached. This implementation is different from bufio.Scanner as it also returns an error if a line is too long to fit into the buffer. In this case, an error is returned together with a limited prefix of the line.\n\n","path":"github.com/cloudquery/plugin-sdk/v2/internal/logging","name":"logging","synopsis":"","isRedistributable":true}
