google / google/flogger

Would you clarify whether a library should or should not declare flogger-system-backend dependency?

Open
#300 0 comments 0 reactions 2 assignees Claimed by @cgdecker View on GitHub
P3 type=documentation
Dominant language
Java
Stars
1.5k
Forks
133
Avg merge
6m
Merged PRs (30d)
7

Description

From the [flogger documentation](https://google.github.io/flogger/):

![image](https://user-images.githubusercontent.com/28604/141149883-532f0b5b-eb2a-4470-b884-f370bd7554bf.png)

It says:

> All code that uses flogger should depend on com.google.flogger:flogger: and com.google.flogger:flogger-system-backend:.

This is strange from my experience of slf4j and logback. If the relationship of flogger and flogger-system-backend is the same as slf4j and logback, then libraries that use flogger should not declare dependency on flogger-system-backend; otherwise the runtime that use multiple of these libraries may end up having different logging backends. http://www.slf4j.org/manual.html#libraries says:

> Embedded components such as libraries or frameworks should not declare a dependency on any SLF4J binding but only depend on slf4j-api.

Would you add a similar guidance in flogger documentation?

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.