Changes under consideration for SLF4J version 2.1.0 #377
Replies: 4 comments 5 replies
-
As mentioned #379, 2.x should stay on Java 8 for the time being. |
Beta Was this translation helpful? Give feedback.
-
I always include something like the class below into my projects. I would very much like to see this standardised, either as a utility method or directly as an added getLogger method in the LoggerFactory class. Off course, this would need Java 9 as it uses theStackWalker api.
|
Beta Was this translation helpful? Give feedback.
-
Please, add |
Beta Was this translation helpful? Give feedback.
-
It would be nice to have some simple (-er) mechanism to intercept all logging calls through the loggers returned by LoggerFactory (e.g. to be able to filter sensitive data from the logs). Currently you can create a proxy ILoggerFactory for constructing proxy Loggers. Unfortunately this solution seems cumbersome/complicated:
A probably nicer solution would be to have a built-in possibility to configure some dedicated interceptor/proxy generating class (e.g. LoggerProxyFactory / LoggerCreationInterceptor / ?) with a help of System property and/or ServiceLoader. LoggerProxyFactory could create proxy Logger objects for wrapping Logger objects returned by application ILoggerFactory and would do this only during the calls to org.slf4j.LoggerFactory#getLogger. Therefore we would split (I)LoggerFactory usage into 2 distinct cases:
|
Beta Was this translation helpful? Give feedback.
-
We are looking for feedback regarding two SLF4J API changes under consideration for version 2.1.0.
The changes under consideration are discussed in separate pages:
You can make new requests below.
Beta Was this translation helpful? Give feedback.
All reactions