goocilogwriter

package module
v0.0.0-...-725da13 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogWriter

type LogWriter struct {
	Client  loggingingestion.LoggingClient
	LogId   *string
	Source  *string
	Subject *string
	Type    *string
	// contains filtered or unexported fields
}

LogWriter implements the io.Writer interface for the purposes of sending data to the OCI Logging service.

func New

func New(provider common.ConfigurationProvider, logType, logSrc, logSubject string,
	bufferSize int) (*LogWriter, error)

New returns a pointer to the LogWriter or an error

func (*LogWriter) Close

func (lw *LogWriter) Close()

Close flushes the buffer and closes the channel. Should be called in the cleanup for an exiting program.

func (*LogWriter) Write

func (lw *LogWriter) Write(p []byte) (int, error)

Write implements the io.Writer interface.

Jump to

Keyboard shortcuts

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