Skip to content

By default register RequestLogger - add HttpClientContext.requestLogging(boolean) to enable disable #31

Closed
@rbygrave

Description

@rbygrave

That is, the majority of the time we want request response logging with the ability to control via DEBUG/TRACE level of io.avaje.http.client.RequestLogger.

So this change makes the default to have logging and I think makes this makes sense.

To turn off automatic registering of RequestLogger we need to use .requestLogging(false)

    final HttpClientContext clientContext = HttpClientContext.newBuilder()
      .baseUrl("https://api.github.com")
      .bodyAdapter(bodyAdapter)
      .requestLogging(false)
      .build();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions