google / google/flogger

Using environment variable to specify backend is too restrictive (ex: use inside application server or junit)

Open
#187 3 comments 1 reaction 1 assignee Claimed by @hagbard View on GitHub
P3 type=addition
Dominant language
Java
Stars
1.5k
Forks
133
Avg merge
6m
Merged PRs (30d)
7

Description

Using -Dflogger.backend_factory=com.google.common.flogger.backend.slf4j.Slf4jBackendFactory#getInstance (for exemaple) to specify the backend to use is not usable for application running on same JVM with others like it is for tomcat or any application server. Even if it might be possible if one has control of the server, it will impact all application and could be problematic.
Could be imagine using a config file using a pre-defined name that would contains configuration that would be checked before looking at environment variable ?

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.