trace

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 /////////////////////////////////////////////////////////////////////

Index

Constants

This section is empty.

Variables

Logger instance used by trace to log messages.

Functions

func Disable

func Disable()

Disable global tracing.

func Enable

func Enable()

Enable global tracing.

func End

func End(t *Message)

End ends the trace.

func Trace

func Trace(msg string) func()

Trace encapsulates begin and end can be called like: defer trace.Trace("method name")()

func Tracef

func Tracef(format string, a ...interface{}) func()

Types

type Message

type Message struct {
	// contains filtered or unexported fields
}

Message is a trace object used to grab run-time state

func Begin

func Begin(msg string) *Message

Begin starts the trace. Msg is the msg to log.

Jump to

Keyboard shortcuts

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