logger

package
v3.1.0-rc.0-20240516-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package logger implements clusterctl logging functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFile

type LogFile struct {
	*bufio.Writer
	// contains filtered or unexported fields
}

LogFile is a log file.

func OpenLogFile

func OpenLogFile(input OpenLogFileInput) *LogFile

OpenLogFile opens a new log file.

func (*LogFile) Close

func (f *LogFile) Close()

Close closes the log file.

func (*LogFile) Flush

func (f *LogFile) Flush()

Flush flushes the log file.

func (*LogFile) Logger

func (f *LogFile) Logger() logr.Logger

Logger returns a logger that writes to the log file.

func (*LogFile) Name

func (f *LogFile) Name() string

Name returns the name of the log file.

type OpenLogFileInput

type OpenLogFileInput struct {
	LogFolder string
	Name      string
}

OpenLogFileInput is the input for OpenLogFile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL