trace

package
v0.0.0-...-a3be206 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 322

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sanitize

func Sanitize(input string) string

Sanitize returns a clean string with sentive user data in the input replaced by PRIVATE_DATA_PLACEHOLDER.

Types

type Closer

type Closer interface {
	Close() error
}

Closer ...

type NullLogger

type NullLogger struct{}

NullLogger ...

func (*NullLogger) Print

func (l *NullLogger) Print(v ...interface{})

func (*NullLogger) Printf

func (l *NullLogger) Printf(format string, v ...interface{})

func (*NullLogger) Println

func (l *NullLogger) Println(v ...interface{})

type Printer

type Printer interface {
	Print(v ...interface{})
	Printf(format string, v ...interface{})
	Println(v ...interface{})
}

Printer ...

var Logger Printer = NewLogger("")

Logger is global logger

func NewLogger

func NewLogger(bluemix_trace string) Printer

NewLogger returns a printer for the given trace setting.

type PrinterCloser

type PrinterCloser interface {
	Printer
	Closer
}

PrinterCloser ...

func NewFileLogger

func NewFileLogger(path string) PrinterCloser

NewFileLogger return a printer that writes to the given file path.

func NewStdLogger

func NewStdLogger() PrinterCloser

NewStdLogger return a printer that writes to StdOut.

Jump to

Keyboard shortcuts

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