package
Version:
v0.9.1
Opens a new window with list of versions in this module.
Published: Jan 8, 2025
License: MPL-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package logstream is used to buffer and write logs to a log stream server
type LogBuffer struct {
}
LogBuffer stores logs in a file and limits the amount of logs written
NewLogBuffer returns a new LogBuffer
Bytes returns a chunk of bytes from the log file
Checksum returns the checksum for the log data
Close removes the underlying log file
SetLimit sets the limit for log data in bytes
Size returns the number of bytes written
LogSink represents a sink for writing logs to
Writer is responsible for buffering and writing logs to the specified log sink
NewWriter returns a new writer instance
Flush will attempt to send all logs currently stored in the buffer
Start will start the goroutine which sends logs to the log sink
Write will append the data to the log buffer
Source Files
¶
Click to show internal directories.
Click to hide internal directories.