Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogsDir ¶
GetLogsDir derives the path to the logs directory.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is a log file handle.
It implements `io.Writer` so it can be used as the log handler and it also provides methods for streaming the content of the log.
func (*Log) Read ¶
Read reads the lines from the log file using the given options, returning the read lines.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a log manager.
type WatchOptions ¶
type WatchOptions struct {
// Follow specifies whether to follow the log file for changes.
Follow bool
// Since specifies a time offset where to start from (excluding the offset itself).
Since time.Time
}
WatchOptions are the watch options.
Click to show internal directories.
Click to hide internal directories.