logger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

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