log

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 1 Imported by: 11

Documentation

Overview

Package log contains functionality for configuring logging behavior. Default logging to stderr can be enabled by setting environment variable AZURE_SDK_GO_LOGGING to "all".

Package log provides functionality for configuring logging facilities.

Index

Constants

View Source
const (
	// EventRequest entries contain information about HTTP requests.
	// This includes information like the URL, query parameters, and headers.
	EventRequest = log.EventRequest

	// EventResponse entries contain information about HTTP responses.
	// This includes information like the HTTP status code, headers, and request URL.
	EventResponse = log.EventResponse

	// EventRetryPolicy entries contain information specific to the retry policy in use.
	EventRetryPolicy = log.EventRetryPolicy

	// EventLRO entries contain information specific to long-running operations.
	// This includes information like polling location, operation state and sleep intervals.
	EventLRO = log.EventLRO
)

Variables

This section is empty.

Functions

func SetEvents added in v0.20.0

func SetEvents(cls ...Event)

SetEvents is used to control which events are written to the log. By default all log events are writen.

func SetListener

func SetListener(lst func(Event, string))

SetListener will set the Logger to write to the specified Listener.

Types

type Event added in v0.20.0

type Event = log.Event

Event is used to group entries. Each group can be toggled on or off.

Jump to

Keyboard shortcuts

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