Skip to content

docs: change logging title #11483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Troubleshooting

## Logging
## Advanced Logging Setup

Our libraries use the Java logging API via `java.util.logging` package.
Our core dependencies, e.g., gRPC, and some handwritten libraries use the
Java logging API via `java.util.logging` package.
Configuring logging level reveals various facts that help your troubleshooting,
including:

Expand All @@ -11,7 +12,7 @@ including:
- Verbose messages in underlying dependency libraries

While there are various ways to configure the logging,
to quickly enable verbose logging for the Google Cloud Java libraries, create
to quickly enable verbose logging for the request transportation, create
a file `logging.properties` with the following content:

```
Expand All @@ -26,7 +27,7 @@ java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
.level=INFO

# --- Specify logging level for certain packages ---
# com.google.api is for HTTP 1.1 layer
# com.google.api is for Google API Extension (GAX) layer
com.google.api.level=ALL
# io.grpc is for gRPC + Netty layer
io.grpc.level=FINE
Expand Down
Loading