googleapis / googleapis/google-cloud-rust

Use `client_artifact` for the logging target

Open
#5,150 4 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: feature request
Dominant language
Rust
Stars
955
Forks
144
Avg merge
1d 5h
Merged PRs (30d)
279

Description

We want to use the crate name as the target in the error / warning logs.

> new!
>
> ```suggestion
> target: snapshot.client_artifact(),
> ```

_Originally posted by @westarle in [#5148](https://github.com/googleapis/google-cloud-rust/pull/5148/changes#r2992092512)_

Once this is updated, we should update the docs to demonstrate how to filter logs by target (e.g. to get `DEBUG` logs for a specific service.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.