1// Code generated by aws/logging_generate.go DO NOT EDIT. 2 3package aws 4 5// ClientLogMode represents the logging mode of SDK clients. The client logging mode is a bit-field where 6// each bit is a flag that describes the logging behavior for one or more client components. 7// The entire 64-bit group is reserved for later expansion by the SDK. 8// 9// Example: Setting ClientLogMode to enable logging of retries and requests 10// clientLogMode := aws.LogRetries | aws.LogRequest 11// 12// Example: Adding an additional log mode to an existing ClientLogMode value 13// clientLogMode |= aws.LogResponse 14type ClientLogMode uint64 15 16// Supported ClientLogMode bits that can be configured to toggle logging of specific SDK events. 17const ( 18 LogSigning ClientLogMode = 1 << (64 - 1 - iota) 19 LogRetries 20 LogRequest 21 LogRequestWithBody 22 LogResponse 23 LogResponseWithBody 24) 25 26// IsSigning returns whether the Signing logging mode bit is set 27func (m ClientLogMode) IsSigning() bool { 28 return m&LogSigning != 0 29} 30 31// IsRetries returns whether the Retries logging mode bit is set 32func (m ClientLogMode) IsRetries() bool { 33 return m&LogRetries != 0 34} 35 36// IsRequest returns whether the Request logging mode bit is set 37func (m ClientLogMode) IsRequest() bool { 38 return m&LogRequest != 0 39} 40 41// IsRequestWithBody returns whether the RequestWithBody logging mode bit is set 42func (m ClientLogMode) IsRequestWithBody() bool { 43 return m&LogRequestWithBody != 0 44} 45 46// IsResponse returns whether the Response logging mode bit is set 47func (m ClientLogMode) IsResponse() bool { 48 return m&LogResponse != 0 49} 50 51// IsResponseWithBody returns whether the ResponseWithBody logging mode bit is set 52func (m ClientLogMode) IsResponseWithBody() bool { 53 return m&LogResponseWithBody != 0 54} 55 56// ClearSigning clears the Signing logging mode bit 57func (m *ClientLogMode) ClearSigning() { 58 *m &^= LogSigning 59} 60 61// ClearRetries clears the Retries logging mode bit 62func (m *ClientLogMode) ClearRetries() { 63 *m &^= LogRetries 64} 65 66// ClearRequest clears the Request logging mode bit 67func (m *ClientLogMode) ClearRequest() { 68 *m &^= LogRequest 69} 70 71// ClearRequestWithBody clears the RequestWithBody logging mode bit 72func (m *ClientLogMode) ClearRequestWithBody() { 73 *m &^= LogRequestWithBody 74} 75 76// ClearResponse clears the Response logging mode bit 77func (m *ClientLogMode) ClearResponse() { 78 *m &^= LogResponse 79} 80 81// ClearResponseWithBody clears the ResponseWithBody logging mode bit 82func (m *ClientLogMode) ClearResponseWithBody() { 83 *m &^= LogResponseWithBody 84} 85