Skip to content

Commit

Permalink
Define log constants in the log package (#17730)
Browse files Browse the repository at this point in the history
The constants in the internal package are going away.
  • Loading branch information
jhendrixMSFT authored Apr 27, 2022
1 parent 45fcc0d commit 74afd9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sdk/azcore/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ type Event = log.Event
const (
// EventRequest entries contain information about HTTP requests.
// This includes information like the URL, query parameters, and headers.
EventRequest = log.EventRequest
EventRequest Event = "Request"

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

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

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

// SetEvents is used to control which events are written to
Expand Down

0 comments on commit 74afd9c

Please sign in to comment.