Uses of Class
org.microproxy.extras.HttpLogger.Builder
Packages that use HttpLogger.Builder
-
Uses of HttpLogger.Builder in org.microproxy.extras
Methods in org.microproxy.extras that return HttpLogger.BuilderModifier and TypeMethodDescriptionstatic HttpLogger.BuilderHttpLogger.builder()Starts a logger atHttpLogger.Level.HEADERS, writingHttpLogger.Format.TEXTwith the default redaction.HttpLogger.Builder.contentView(String name) The content view to render bodies with: "auto" (the default) for the best one for each body, or a view's name, such asgrpc.HttpLogger.Builder.contentViews(ContentViews views) AtHttpLogger.Level.BODY, renders bodies throughviewswhere one applies (seecontentView(java.lang.String)): protobuf and gRPC message by message, JSON indented, form data, GraphQL, msgpack.HttpLogger.Builder.format(HttpLogger.Format format) Readable blocks (default) or JSON lines.HttpLogger.Builder.level(HttpLogger.Level level) How much to log (defaultHttpLogger.Level.HEADERS).HttpLogger.Builder.maxBodyBytes(int maxBodyBytes) AtHttpLogger.Level.BODY, keeps at most this many bytes of each body (and of each WebSocket frame's text); the rest is counted but not kept.HttpLogger.Builder.only(BiPredicate<HttpRequest, FlowContext> predicate) Logs only the exchanges whose request (as the client sent it) matches.Also replaces the values of these headers (any case) with "\u2588\u2588", on both sides of the proxy.HttpLogger.Builder.redactNothing()Redacts nothing, not even the default headers; laterredactcalls add to that.HttpLogger.Builder.redactQueryParams(String... names) Also replaces the values of these query parameters (any case) in logged URLs.Where each message goes, as one string (several lines inHttpLogger.Format.TEXT).HttpLogger.Builder.webSocketFrames(boolean log) AtHttpLogger.Level.BODY, also logs WebSocket frames after an upgrade: text frames' text (up tomaxBodyBytes), other frames' sizes.