You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inject-app: Remove SLF4J-API logging bridges as dependencies
Problem
It is incorrect to blindly specify the SLF4J-API logging bridges
on the inject-app library of the framework at it causes trouble
for usages that cannot use Logback as an SLF4J-API logging
implementation.
Solution
Remove the SLF4J-API logging bridges as dependencies. Users
should provide the correct bridges as needed for their chosen
SLF4J-API logging implementation. Note that the `TwitterServer`
logging libraries will bring the correct bridges for the
given logging implementation so for users that include a
dependency on one of those libraries, there is nothing else that
needs to be done.
Result
Less conflicting logging implementations.
JIRA Issues: CSL-9669
Differential Revision: https://phabricator.twitter.biz/D854393
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,19 @@ Unreleased
10
10
Runtime Behavior Changes
11
11
~~~~~~~~~~~~~~~~~~~~~~~~
12
12
13
+
* inject-app: Remove the SLF4J-API logging bridges as dependencies. These were originally
14
+
added as the framework was expressly opionated that users should use Logback as an SLF4J-API
15
+
implementation, however specifying the bridges on the Finatra inject/inject-app library
16
+
causes many issues with code that must use a different SLF4J-API logging implementation
17
+
but still uses the Finatra framework. Users should note that if they do not include these
18
+
bridges in some other manner that they may lose logging if they have any libraries which
19
+
log with one of the formerly bridged implementations. Also note that servers using a
20
+
`TwitterServer` logging implementation to support `dynamically changing log levels <https://twitter.github.io/twitter-server/Features.html#dynamically-change-log-levels>`__ will get the proper bridges as dependencies.
21
+
``PHAB_ID=D854393``
22
+
23
+
Runtime Behavior Changes
24
+
~~~~~~~~~~~~~~~~~~~~~~~~
25
+
13
26
* inject-server: Throw an `UnsupportedOperationException` when access to the `c.t.inject.server.DeprecatedLogging#log`
14
27
instance is attempted. This is a JUL Logger instance which was provided only as a backward-compatible
15
28
shim for Finatra services when the `c.t.server.TwitterServer` framework was moved to the `SLF4J-API`.
0 commit comments