Skip to content

Commit 74afd9c

Browse files
authored
Define log constants in the log package (Azure#17730)
The constants in the internal package are going away.
1 parent 45fcc0d commit 74afd9c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sdk/azcore/log/log.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ type Event = log.Event
1717
const (
1818
// EventRequest entries contain information about HTTP requests.
1919
// This includes information like the URL, query parameters, and headers.
20-
EventRequest = log.EventRequest
20+
EventRequest Event = "Request"
2121

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

2626
// EventRetryPolicy entries contain information specific to the retry policy in use.
27-
EventRetryPolicy = log.EventRetryPolicy
27+
EventRetryPolicy Event = "Retry"
2828

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

3434
// SetEvents is used to control which events are written to

0 commit comments

Comments
 (0)