Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogConfig ¶
type LogConfig struct { // LogDir is the host path where logs are to be written to LogDir string // StdoutLogFile is the path relative to LogDir for stdout logging StdoutLogFile string // StderrLogFile is the path relative to LogDir for stderr logging StderrLogFile string // StdoutFifo is the path on the host to the stdout pipe StdoutFifo string // StderrFifo is the path on the host to the stderr pipe StderrFifo string // MaxFiles is the max rotated files allowed MaxFiles int // MaxFileSizeMB is the max log file size in MB allowed before rotation occures MaxFileSizeMB int }
type LogMon ¶
func LaunchLogMon ¶
func LaunchLogMon(logger hclog.Logger, reattachConfig *plugin.ReattachConfig) (LogMon, *plugin.Client, error)
LaunchLogMon launches a new logmon or reattaches to an existing one. TODO: Integrate with base plugin loader
type Plugin ¶
type Plugin struct { plugin.NetRPCUnsupportedPlugin // contains filtered or unexported fields }
func (*Plugin) GRPCClient ¶
func (p *Plugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*Plugin) GRPCServer ¶
type TaskLogger ¶
type TaskLogger struct {
// contains filtered or unexported fields
}
func NewTaskLogger ¶
func NewTaskLogger(cfg *LogConfig, logger hclog.Logger) (*TaskLogger, error)
func (*TaskLogger) Close ¶
func (tl *TaskLogger) Close()
Click to show internal directories.
Click to hide internal directories.