trace

package module
v0.0.0-...-107ef08 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2017 License: Apache-2.0 Imports: 9 Imported by: 3

README

trace-logger

A small library to trace network requests and responses.

Note: This repository should be imported as code.cloudfoundry.org/trace-logger.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpJSON

func DumpJSON(label string, data interface{})

func DumpRequest

func DumpRequest(req *http.Request)

func DumpResponse

func DumpResponse(resp *http.Response)

func PRIVATE_DATA_PLACEHOLDER

func PRIVATE_DATA_PLACEHOLDER() string

func Sanitize

func Sanitize(input string) (sanitized string)

func SetStdout

func SetStdout(s io.Writer)

Types

type Printer

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

func NewLogger

func NewLogger(env_setting string) Printer

Jump to

Keyboard shortcuts

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