Skip to content

Commit

Permalink
Document how to enable debug/tracing/... logging in the client - Chea…
Browse files Browse the repository at this point in the history
…tsheet (#3125)

* Fixes #2526

Updated CHEATSHEET.md
Added example for how to configure okhttp logging-interceptor.

* Updated PR

* Updated changes

* Added in table of contents

* Update CHEATSHEET.md
  • Loading branch information
MUzairS15 authored May 24, 2021
1 parent cc4945f commit 963c96f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/CHEATSHEET.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ This document contains common usages of different resources using Fabric8 Kubern
* [Knative Client](#knative-client)
* [Initializing Knative Client](#initializing-knative-client)
* [Knative Client DSL Usage](#knative-client-dsl-usage)

* [Logging](#Logging)

### Initializing Kubernetes Client
Typically, we create Kubernetes Client like this:
```
Expand Down Expand Up @@ -2767,3 +2768,13 @@ try (KnativeClient kn = new DefaultKnativeClient()) {
kn.services().inNamespace("default").createOrReplace(service);
}
```
#### Logging
Using logging-interceptor:
- Configure OkHTTP logging:
- Set logging level to trace in my simplelogger.properties file:
```
org.slf4j.simpleLogger.defaultLogLevel=trace
```

0 comments on commit 963c96f

Please sign in to comment.