logging

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRecords

func GetRecords() []opentracing.LogRecord

Stop record all registered writers (used by End in order to retrieve the records from the log and insert them in the span)

func PatchLogger

func PatchLogger(logger *stdlog.Logger)

Patch a logger

func PatchStandardLogger

func PatchStandardLogger()

Patch the standard logger

func PatchStdErr

func PatchStdErr()

Patch standard error

func PatchStdOut

func PatchStdOut()

Patch standard output

func Reset

func Reset()

Start record in all registered writers (used by the StartTest in order to generate new records for the span)

func UnpatchLogger

func UnpatchLogger(logger *stdlog.Logger)

Unpatch a logger

func UnpatchStandardLogger

func UnpatchStandardLogger()

Unpatch the standard logger

func UnpatchStdErr

func UnpatchStdErr()

Unpatch standard error

func UnpatchStdOut

func UnpatchStdOut()

Unpatch standard output

func WithContext added in v0.1.13

func WithContext(logger *stdlog.Logger, ctx context.Context) *stdlog.Logger

Create a new logger with a context

Types

This section is empty.

Jump to

Keyboard shortcuts

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