Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReopenableLogger ¶
type ReopenableLogger struct {
// contains filtered or unexported fields
}
ReopenableLogger is only designed for container logging purpose when container runtime is in runp mode. ReopenableLogger will work along with exec.Cmd.Stdout/Stderr and ContainerLogManager, and will perform reopen when CRI interface ReopenContainerLog is called.
func NewReopenableLogger ¶
func NewReopenableLogger(fileName string) *ReopenableLogger
func (*ReopenableLogger) Close ¶
func (l *ReopenableLogger) Close() error
Close file to ensure data is all written.
func (*ReopenableLogger) ReopenFile ¶
func (l *ReopenableLogger) ReopenFile() error
call ReopenFile within CRI interface ReopenContainerLog
Click to show internal directories.
Click to hide internal directories.