Version: v0.5.3 Latest Latest

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0




This section is empty.


This section is empty.


func Sanitize

func Sanitize(input string) string

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


type Closer

type Closer interface {
	Close() error

Closer will close the specific output

type NullLogger

type NullLogger struct{}

NullLogger will drop all inputs

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 formats using the default formats for its operands and writes to specific output.
	Print(v ...interface{})
	// Printf formats according to a format specifier and writes to specific output.
	Printf(format string, v ...interface{})
	// Println formats using the default formats for its operands and writes to specific output.
	Println(v ...interface{})

Printer will write logs to specific output.

var Logger Printer = NewLogger("")

Logger is the default logger

func NewLogger

func NewLogger(bluemixTrace string) Printer

NewLogger returns a printer for the given trace setting.

type PrinterCloser

type PrinterCloser interface {

PrinterCloser is the Printer which can be closed

func NewFileLogger

func NewFileLogger(path string) PrinterCloser

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

func NewStdLogger

func NewStdLogger() PrinterCloser

NewStdLogger creates a a printer that writes to StdOut.

Source Files

Jump to

Keyboard shortcuts

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