loggerwriter

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package loggerwriter provides an io.Writer implementation that writes to a crossplane logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerWriter

type LoggerWriter struct {
	// contains filtered or unexported fields
}

LoggerWriter is an io.Writer implementation that writes to a logger.

func NewLoggerWriter

func NewLoggerWriter(logger logging.Logger) *LoggerWriter

NewLoggerWriter creates a new LoggerWriter that sends output to the given logger.

func (*LoggerWriter) WithLevel

func (w *LoggerWriter) WithLevel(level int) *LoggerWriter

WithLevel allows setting a specific logging level.

func (*LoggerWriter) Write

func (w *LoggerWriter) Write(p []byte) (n int, err error)

Write implements io.Writer.Write by sending the data to the logger.

Jump to

Keyboard shortcuts

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