microsoftgraph / microsoftgraph/msgraph-sdk-java

What happened to DefaultLogger and the ability to set the logging level?

未关闭
#1,961 9 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

area:documentation type:question
主要语言
Java
星标
444
派生
154
平均合并
18 小时 28 分钟
30 天内合并 PR
4

描述

Expected behavior

The DefaultLogger class was removed as was the GraphServiceClient.builder() which had a logger() with no obvious replacement. Do we have to access low level OkHttp to add a logging interceptor? All I want to do is set logging to DEBUG vs. INFO based on the user's config.

Actual behavior

No way to easily set the logging level.

Steps to reproduce the behavior

I migrated from 5.77.0 to 6.6.0

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先比较 5.77.0 和 6.6.0 中与日志记录相关的 API,尤其是 DefaultLogger、GraphServiceClient.builder() 和 logger() 选项。检查当前 SDK 如何暴露 OkHttp,并确定如何在不要求低级访问的情况下实现可配置的 DEBUG 与 INFO 日志记录;当用户拥有一个明确且受支持的替代方案时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api, developer-experience
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。