Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
6d9716f
[maven-release-plugin] prepare for next development iteration
Jul 29, 2014
df3ca9a
[maven-release-plugin] prepare release log4j-2.0.2
Aug 17, 2014
88d2dde
[maven-release-plugin] prepare for next development iteration
Aug 17, 2014
f26ae59
Refactor FindBugs version into one property.
garydgregory Aug 20, 2014
8841763
Update to Checkstyle 2.12.1 for all modules using a shared property f…
garydgregory Aug 21, 2014
4b4b926
Ignore: Maven target folder and Eclipse files and folders.
garydgregory Aug 29, 2014
6e2a93a
[maven-release-plugin] copy for tag log4j-2.0.2
Aug 17, 2014
c875d14
Add XSD info for maven site configs.
jvz Aug 30, 2014
03f5273
LOG4J2-807: Fixed issue where log4j-to-slf4j did not work correctly with
remkop Sep 4, 2014
44614d9
Remove capability mumbo jumbo.
jvz Sep 5, 2014
5bf2646
Consistent POM descriptions.
garydgregory Sep 29, 2014
8f43eb7
Refactor JXR plugin version into a property ${jxr.plugin.version}.
garydgregory Sep 29, 2014
d34a82f
Pick up JXR version from parent POM.
garydgregory Sep 29, 2014
27095b8
Add version element back to JXR plugins in reporting sections, or Maven
garydgregory Sep 29, 2014
09bbb99
Remove custom javadoc tag configurations.
jvz Sep 30, 2014
d551529
Add test utilities to log4j-to-slf4j.
jvz Oct 4, 2014
4afb4c2
Use ILC in test.
jvz Oct 4, 2014
ebba69e
Add CallerInformationTest to log4j-to-slf4j.
jvz Oct 4, 2014
b794e5d
Literate tests.
jvz Oct 4, 2014
4c401c8
[maven-release-plugin] prepare release log4j-2.1
jvz Oct 4, 2014
4716aa6
[maven-release-plugin] prepare for next development iteration
jvz Oct 4, 2014
f31237a
[maven-release-plugin] prepare release log4j-2.1-rc3
jvz Oct 4, 2014
6144b52
[maven-release-plugin] prepare for next development iteration
jvz Oct 4, 2014
1f7aea1
Normalize reporting sections in poms.
jvz Oct 4, 2014
bd35594
Revert version to 2.1-SNAPSHOT.
jvz Oct 4, 2014
a6df437
[maven-release-plugin] prepare release log4j-2.1-rc4
jvz Oct 6, 2014
24b849b
[maven-release-plugin] prepare for next development iteration
jvz Oct 6, 2014
6d8f6b9
Revert changes to unit tests that cause compilation errors in Java 6
rgoers Oct 19, 2014
7514aa3
[maven-release-plugin] prepare release log4j-2.1
rgoers Oct 20, 2014
9705279
Revert release version
rgoers Oct 20, 2014
291bb67
[maven-release-plugin] prepare release log4j-2.1
rgoers Oct 20, 2014
d10b281
[maven-release-plugin] prepare for next development iteration
rgoers Oct 20, 2014
32780c4
Marking next version as 2.2 due to new features: connect timeouts on
garydgregory Nov 18, 2014
b381d97
[maven-release-plugin] prepare release log4j-2.2
rgoers Feb 22, 2015
b5c796a
[maven-release-plugin] prepare for next development iteration
rgoers Feb 22, 2015
9ea4779
[LOG4J2-926] Truncate from the end of text format modifier. Also change
garydgregory Mar 9, 2015
1ca1607
I mean 2.3, not 2.2!
garydgregory Mar 9, 2015
8dacb10
[maven-release-plugin] prepare release log4j-2.3
rgoers May 10, 2015
a53e2f0
[maven-release-plugin] prepare for next development iteration
rgoers May 10, 2015
e63a196
Revert version for re-relesae. Add missing license headers
rgoers May 10, 2015
120d8dd
[maven-release-plugin] prepare release log4j-2.3
rgoers May 10, 2015
c7c5cb2
[maven-release-plugin] prepare for next development iteration
rgoers May 10, 2015
83c6151
Bump version from 2.3.1 to 2.4 for the next release. We have a new
garydgregory May 19, 2015
de7356b
Redundant specification of type arguments.
garydgregory May 21, 2015
f333b73
LOG4J2-1017 doc updates for new Java 7 requirement from log4j-2.4:
remkop Jul 5, 2015
8548322
[maven-release-plugin] prepare release log4j-2.4
rgoers Sep 20, 2015
c347386
[maven-release-plugin] prepare for next development iteration
rgoers Sep 20, 2015
afe8e11
Renamed InitialLoggerContext to LoggerContextRule.
garydgregory Sep 24, 2015
9bdebc4
[maven-release-plugin] prepare release log4j-2.4.1
rgoers Oct 9, 2015
a122759
[maven-release-plugin] prepare for next development iteration
rgoers Oct 9, 2015
ceaeb5f
[maven-release-plugin] prepare release log4j-2.4.1
rgoers Oct 9, 2015
fe9ac82
[maven-release-plugin] prepare for next development iteration
rgoers Oct 9, 2015
6bfc788
[LOG4J2-1180] Logger cache does not account for message factory.
garydgregory Nov 2, 2015
a420d55
[maven-release-plugin] prepare release log4j-2.5-rc1
rgoers Dec 7, 2015
4f01346
[maven-release-plugin] prepare for next development iteration
rgoers Dec 7, 2015
269d91b
Do not hide.
garydgregory Dec 8, 2015
96ddda1
Update POMs from 2.5.1-SNAPSHOT to 2.6-SNAPSHOT.
garydgregory Jan 27, 2016
70a7ff6
Use LoaderUtil.loadClass instead of Class.forName
jvz Feb 24, 2016
ae820a4
LOG4J2-1303 - Add dependency info link to component pages.
jvz Mar 3, 2016
9ec8693
LOG4J2-1278 added methods with unrolled varargs to SLF4JLogger
remkop Mar 16, 2016
e0eb761
LOG4J2-1318 refactor LoggerContext implementations to use new LoggerR…
remkop Mar 27, 2016
49e1b15
LOG4J2-1278 fixed test to take into account that message factory may …
remkop Mar 31, 2016
bb9bd3f
LOG4J2-1326 add methods isEnabled that accepts a CharSequence to subc…
remkop Apr 7, 2016
3c797ed
Add traceEntry/Exit() tests.
garydgregory Apr 17, 2016
506a3e4
[maven-release-plugin] prepare release log4j-2.6-rc1
rgoers May 25, 2016
82a8cc5
[maven-release-plugin] prepare for next development iteration
rgoers May 25, 2016
2a504d9
Use final.
garydgregory Jun 3, 2016
b1d79ad
[maven-release-plugin] prepare release log4j-2.6.1-rc1
rgoers Jun 6, 2016
5bd6030
[maven-release-plugin] prepare for next development iteration
rgoers Jun 6, 2016
f564050
[maven-release-plugin] prepare release log4j-2.6.2-rc1
rgoers Jul 6, 2016
21898c9
[maven-release-plugin] prepare for next development iteration
rgoers Jul 6, 2016
c1fb668
[LOG4J2-1516] Add ThreadContextMap.putAll(Map<String, String>).
garydgregory Aug 15, 2016
c3f33c7
LOG4J2-1516 moved putAll(Map) method into separate ThreadContextMap2 …
remkop Aug 20, 2016
8a32cee
ThreadContextMap2 extends ThreadContextMap.
garydgregory Aug 22, 2016
f171f78
Simplify Git ignore file usage.
garydgregory Sep 1, 2016
ae92623
Remove unused imports.
garydgregory Sep 6, 2016
1189db0
Add final modifier to local variables.
garydgregory Sep 7, 2016
1142ed7
LOG4J2-1447 change the contract of ThreadContextMap2 to include the r…
remkop Sep 22, 2016
a5b30dc
LOG4J2-1447 LOG4J2-1349 renamed ArrayContextData to SortedStringArrayMap
remkop Sep 22, 2016
f735f19
LOG4J2-1349 documented and renamed method getReadOnlyContextData() to…
remkop Sep 22, 2016
1246f5f
LOG4J2-1447 LOG4J2-1349 moved ContextData and MutableContextData from…
remkop Sep 22, 2016
bf5b841
LOG4J2-1447 LOG4J2-1349 renamed MutableContextData to StringMap, Cont…
remkop Sep 22, 2016
3b85eff
[maven-release-plugin] prepare for next development iteration
rgoers Sep 26, 2016
f403040
[maven-release-plugin] rollback the release of log4j-2.7-rc1
rgoers Sep 26, 2016
2182866
[maven-release-plugin] prepare release log4j-2.7-rc1
rgoers Sep 26, 2016
aced526
[maven-release-plugin] prepare for next development iteration
rgoers Sep 26, 2016
ee99009
[maven-release-plugin] prepare release log4j-2.7-rc2
rgoers Oct 2, 2016
afae3f5
[maven-release-plugin] prepare for next development iteration
rgoers Oct 2, 2016
c888f9d
Immutable empty StringMap
mikaelstaldal Oct 21, 2016
f301d18
Remove EmptyStringMap class
Oct 24, 2016
d173353
Testing [LOG4J2-1688]
garydgregory Nov 10, 2016
dfb901c
Add comments.
garydgregory Nov 10, 2016
49690a0
LOG4J2-1679 Add ThreadContextMap3 interface supporting method removeA…
Nov 11, 2016
3775aaf
Primes have more fun.
garydgregory Nov 12, 2016
cfc0e26
Add final modifier to method parameters.
garydgregory Nov 12, 2016
3a98f64
Add final modifier to local variables
garydgregory Nov 12, 2016
dde3492
Configure maven-doap-plugin
jvz Jan 16, 2017
3a40132
LOG4J2-1689 Rename to CleanableThreadContextMap
Jan 17, 2017
2f72e33
[maven-release-plugin] prepare release log4j-2.8-rc1
rgoers Jan 22, 2017
e9ede8f
[maven-release-plugin] prepare for next development iteration
rgoers Jan 22, 2017
e240f3b
Migrate to logging-parent
jvz Jan 21, 2017
b4b0be2
[LOG4J2-1802]: Migrate component sites to markdown
jvz Jan 29, 2017
6dfe73b
[maven-release-plugin] prepare release log4j-2.8.1-rc1
rgoers Feb 26, 2017
2b97f5e
[maven-release-plugin] prepare for next development iteration
rgoers Feb 26, 2017
7434fa6
LOG4J2-1836 - Update the API version
rgoers Mar 3, 2017
6a8aee5
[maven-release-plugin] prepare release log4j-2.8.2-rc1
jvz Apr 2, 2017
72e47ea
[maven-release-plugin] prepare for next development iteration
jvz Apr 2, 2017
5ce4ef3
LOG4J2-1917 - Use ServiceLoader to locate implementations.
rgoers May 21, 2017
f81cf2d
Update POM versions from 2.8.3-SNAPSHOT to 2.9-SNAPSHOT.
garydgregory Jun 29, 2017
92a0527
[maven-release-plugin] prepare release log4j-2.9-rc1
rgoers Aug 26, 2017
523c230
[maven-release-plugin] prepare for next development iteration
rgoers Aug 26, 2017
19c830b
[maven-release-plugin] prepare release log4j-2.9.1-rc1
rgoers Sep 18, 2017
0febc9b
[maven-release-plugin] prepare for next development iteration
rgoers Sep 18, 2017
366e4e7
The next version will be 2.10.0.
garydgregory Oct 12, 2017
e4a789e
LOG4J-2056 - modularize log4j-api. Turn others into automatic modules
rgoers Oct 15, 2017
73fc762
[maven-release-plugin] prepare release log4j-2.10-rc1
rgoers Nov 19, 2017
cd612f5
[maven-release-plugin] prepare for next development iteration
rgoers Nov 19, 2017
21c6ee2
Update POMs from version 2.10.1-SNAPSHOT to 2.11.0-SNAPSHOT to stop some
garydgregory Mar 1, 2018
555c857
[maven-release-plugin] prepare release log4j-2.11.0-rc1
rgoers Mar 11, 2018
b3c30ae
[maven-release-plugin] prepare for next development iteration
rgoers Mar 11, 2018
b14a525
[maven-release-plugin] prepare release log4j-2.11.1-rc1
rgoers Jul 23, 2018
cf6afd6
[maven-release-plugin] prepare for next development iteration
rgoers Jul 23, 2018
8d32d86
[maven-release-plugin] rollback the release of log4j-2.11.1-rc1
rgoers Jul 23, 2018
d020ec5
[maven-release-plugin] prepare release log4j-2.11.1-rc1
rgoers Jul 23, 2018
ad069de
[maven-release-plugin] prepare for next development iteration
rgoers Jul 23, 2018
72ed89a
[maven-release-plugin] prepare release log4j-2.11.2-rc1
rgoers Feb 3, 2019
e7cb2cf
[maven-release-plugin] prepare for next development iteration
rgoers Feb 3, 2019
b177ccf
[maven-release-plugin] prepare release log4j-2.11.2-rc2
rgoers Feb 5, 2019
7d7cab5
[maven-release-plugin] prepare for next development iteration
rgoers Feb 5, 2019
549311d
[maven-release-plugin] prepare release log4j-2.11.2-rc3
rgoers Feb 6, 2019
246b809
[maven-release-plugin] prepare for next development iteration
rgoers Feb 6, 2019
68c09b6
[maven-release-plugin] prepare release log4j-2.12.0-rc1
rgoers Jun 23, 2019
ca573ed
[maven-release-plugin] prepare for next development iteration
rgoers Jun 23, 2019
124ddef
[maven-release-plugin] rollback the release of log4j-2.12.0-rc1
rgoers Jun 23, 2019
e148a91
[maven-release-plugin] prepare release log4j-2.12.0-rc1
rgoers Jun 23, 2019
e2b6388
[maven-release-plugin] prepare for next development iteration
rgoers Jun 23, 2019
4c3967f
[maven-release-plugin] prepare release log4j-2.12.0-rc2
rgoers Jun 26, 2019
e6fdacd
[maven-release-plugin] prepare for next development iteration
rgoers Jun 26, 2019
243bdad
[maven-release-plugin] prepare release log4j-2.12.1-rc1
rgoers Aug 7, 2019
1b29c81
[maven-release-plugin] prepare for next development iteration
rgoers Aug 7, 2019
55cdc32
[maven-release-plugin] prepare release log4j-2.13.0-rc1
rgoers Dec 9, 2019
b03c81b
[maven-release-plugin] prepare for next development iteration
rgoers Dec 9, 2019
6819b24
[maven-release-plugin] prepare release log4j-2.13.0-rc2
rgoers Dec 12, 2019
32ed790
[maven-release-plugin] prepare for next development iteration
rgoers Dec 12, 2019
6cc5e6a
[maven-release-plugin] prepare release log4j-2.13.1-rc1
rgoers Feb 24, 2020
1aebc91
[maven-release-plugin] prepare for next development iteration
rgoers Feb 24, 2020
2223c0e
[maven-release-plugin] prepare release log4j-2.13.1-rc2
rgoers Feb 25, 2020
7b85ba6
[maven-release-plugin] prepare for next development iteration
rgoers Feb 25, 2020
b32311b
[maven-release-plugin] prepare release log4j-2.13.1-rc2
rgoers Feb 26, 2020
47940c8
[maven-release-plugin] prepare for next development iteration
rgoers Feb 26, 2020
b9bd583
[maven-release-plugin] prepare release log4j-2.13.2-rc1
rgoers Apr 21, 2020
08ae356
[maven-release-plugin] prepare for next development iteration
rgoers Apr 21, 2020
2837fae
[maven-release-plugin] prepare release log4j-2.13.3-rc1
rgoers May 10, 2020
70933a4
[maven-release-plugin] prepare for next development iteration
rgoers May 10, 2020
f1e456f
[LOG4J2-2844] Null pointer exception when no network interfaces are
May 13, 2020
5f9e25c
[LOG4J2-2653] Add initial JUnit 5 support
jvz Aug 2, 2020
0a02c55
[LOG4J2-2653] Simplify JUnit dependencies
jvz Aug 2, 2020
57da600
Swap findbugs with spotbugs
jvz Sep 19, 2020
1e63131
LOG4J2-2939: Fix NPE in MDCContextMap (#430)
SiegfriedTobias1 Oct 6, 2020
b88d398
Only generate doap file in parent project
rgoers Nov 3, 2020
df7c9f7
[maven-release-plugin] prepare release log4j-2.14.0-rc1
rgoers Nov 6, 2020
7b67afa
[maven-release-plugin] prepare for next development iteration
rgoers Nov 6, 2020
91fffcf
[maven-release-plugin] prepare release log4j-2.14.1-rc1
rgoers Mar 7, 2021
b7858d6
[maven-release-plugin] prepare for next development iteration
rgoers Mar 7, 2021
a17bb3f
LOG4J2-2940: Context selectors are aware of ClassLoader dependency
carterkozak Mar 16, 2021
706ade9
Upgrade from hamcrest-all:1.3 to hamcrest:2.2.
vy Oct 24, 2021
bfc6a61
[maven-release-plugin] prepare release log4j-2.15.0-rc1
rgoers Dec 6, 2021
8c9ad6a
[maven-release-plugin] prepare for next development iteration
rgoers Dec 6, 2021
628a602
[maven-release-plugin] prepare release log4j-2.15.0-rc2
rgoers Dec 9, 2021
d9b6d8a
[maven-release-plugin] prepare for next development iteration
rgoers Dec 9, 2021
d97f3a7
[maven-release-plugin] prepare release log4j-2.15.1-rc1
jvz Dec 12, 2021
e36a531
[maven-release-plugin] prepare for next development iteration
jvz Dec 12, 2021
f59a7ab
[maven-release-plugin] prepare release log4j-2.16.0-rc1
jvz Dec 13, 2021
700c8cb
[maven-release-plugin] prepare for next development iteration
jvz Dec 13, 2021
8f288a2
[maven-release-plugin] prepare release log4j-2.17.0-rc1
rgoers Dec 18, 2021
dc0ccf1
[maven-release-plugin] prepare for next development iteration
rgoers Dec 18, 2021
723d38a
Remove empty JavaDoc in log4j-to-slf4j
vorburger Dec 23, 2021
00dec42
Fix MessageFactory support bug in SLF4JLoggerContext
vorburger Dec 23, 2021
6fdac8a
LOG4J2-3289: Fix log4j-to-slf4j re-interpolation of formatted message…
carterkozak Dec 25, 2021
b862fee
[maven-release-plugin] prepare release log4j-2.17.1-rc1
jvz Dec 27, 2021
f3c51dd
[maven-release-plugin] prepare for next development iteration
jvz Dec 27, 2021
dbcfa16
Clean up pom.xml files
jvz Jan 22, 2022
2afd6af
[maven-release-plugin] prepare release log4j-2.17.2-rc1
rgoers Feb 23, 2022
493af8a
[maven-release-plugin] prepare for next development iteration
rgoers Feb 23, 2022
67b4b5e
[maven-release-plugin] prepare release log4j-2.18.0-rc1
rgoers Jun 28, 2022
5e538ed
[maven-release-plugin] prepare for next development iteration
rgoers Jun 28, 2022
858d9e3
[LOG4J2-3546] Switch from `osgi.serviceloader` to `Activator`
ppkarwasz Jul 3, 2022
c6e7cb5
Use `junit-bom`
ppkarwasz Sep 6, 2022
5f5241f
[maven-release-plugin] prepare release log4j-2.19.0-rc1
rgoers Sep 9, 2022
fb1d1fc
[maven-release-plugin] prepare for next development iteration
rgoers Sep 9, 2022
52bec6c
[maven-release-plugin] prepare release log4j-2.19.0-rc1
rgoers Sep 9, 2022
faded46
[maven-release-plugin] prepare for next development iteration
rgoers Sep 9, 2022
9d9aac8
[maven-release-plugin] prepare release log4j-2.19.0-rc2
rgoers Sep 13, 2022
310cdd6
[maven-release-plugin] prepare for next development iteration
rgoers Sep 13, 2022
61663c8
Fix new snapshot version
ppkarwasz Sep 16, 2022
bacfd00
Add scopes to child POM dependencies
ppkarwasz Sep 16, 2022
b22211e
Sort dependencies in POMs
ppkarwasz Sep 18, 2022
066c1bc
Delegates plugin versions to ASF parent
ppkarwasz Sep 18, 2022
d718c0e
Centralize plugin versions in main POM
ppkarwasz Oct 2, 2022
ac29f48
Remove no-op plugin execution
ppkarwasz Oct 18, 2022
2c72e66
LOG4J2-3628 Replace `maven-changes-plugin` with `log4j-changelog` (#1…
vy Jan 13, 2023
e93e033
Simplify site generation (#1166)
vy Jan 16, 2023
34aa863
[LOG4J2-3647] Add global filter support to `LogBuilder`
ppkarwasz Jan 13, 2023
6182dae
[LOG4J2-3647] Fix `log4j-to-slf4j` dependency on internal package
ppkarwasz Jan 14, 2023
d46a23a
Fix Javadoc generation and links for the site
vy Feb 12, 2023
3dbf275
Remove Maven `<reporting>` blocks, since reporting is disabled
vy Feb 14, 2023
52366ac
[maven-release-plugin] prepare release log4j-2.20.1-rc1
rgoers Feb 18, 2023
3105493
[maven-release-plugin] prepare for next development iteration
rgoers Feb 18, 2023
7e188e0
[maven-release-plugin] prepare release log4j-2.20.1-rc1
rgoers Feb 18, 2023
da43365
Revert version update
rgoers Feb 18, 2023
dd58b23
[maven-release-plugin] prepare release log4j-2.20.0-rc1
rgoers Feb 18, 2023
e3844f1
[maven-release-plugin] prepare for next development iteration
rgoers Feb 18, 2023
30653de
[maven-release-plugin] rollback the release of log4j-2.20.0-rc1
rgoers Feb 18, 2023
8b3560b
[maven-release-plugin] prepare release log4j-2.20.0-rc1
rgoers Feb 18, 2023
e9c7836
[maven-release-plugin] prepare for next development iteration
rgoers Feb 18, 2023
8fc740c
[log4j-to-slf4j] Adapt OSGi metadata to work with slf4j 1 and 2
HannesWell Mar 16, 2023
3a141b8
Renormalize Java file line endings
ppkarwasz Mar 29, 2023
e522d69
Apply Spotless to all files
Apr 25, 2023
e565fb0
Use `final` whenever possible
Jun 4, 2023
57a4ea4
Bump version to 2.21.0-SNAPSHOT
ppkarwasz Sep 20, 2023
0337389
Remove references to `maven-bundle-plugin`
ppkarwasz Sep 25, 2023
da8c568
Replace explicit versions with property
ppkarwasz Sep 26, 2023
2c6d5d7
Add BND configuration to bridges
ppkarwasz Sep 29, 2023
3605ba7
Migrate changelog, site, and docs to the new infra
vy Oct 5, 2023
74b793f
Swap `/pom.xml` and `/log4j-bom/pom.xml`
vy Oct 5, 2023
38da321
Remove `log4j-core` from some processor paths
ppkarwasz Oct 6, 2023
9c76118
Add `log4j-core` to some modules processor path
ppkarwasz Oct 6, 2023
9e6c313
Add OSGi package versioning and fix API breaking changes
ppkarwasz Oct 8, 2023
c33f0fa
Fix OSGi tests
ppkarwasz Oct 11, 2023
a0ff3e5
Ban dependencies interfering with our tests
ppkarwasz Oct 20, 2023
ec71ef7
Bump SLF4j to version 2.0.9
ppkarwasz Oct 30, 2023
b330206
Remove unused Maven properties
vy Nov 1, 2023
02999e4
Apply Palantir formatter
vy Nov 16, 2023
a0dbf92
Fix `log4j-to-slf4j` JPMS and OSGi descriptors
ppkarwasz Nov 21, 2023
9acc924
Fix NPE caused by MDCContextMap
ppkarwasz Dec 20, 2023
be8d47a
Expand wildcard imports
ppkarwasz Jan 15, 2024
877eaac
Simplify configuration after BND 7.x upgrade
ppkarwasz Dec 21, 2023
b2f528f
Remove reflection from `log4j-to-jul` and `log4j-to-slf4j`
ppkarwasz Mar 19, 2024
a77faeb
Move SLF4J dependencies to SLF4J-related modules
ppkarwasz Mar 30, 2024
c103f43
Improve name/description of SLF4J-related modules (#1462)
vy Apr 25, 2024
918f5a4
Bump org.slf4j:slf4j-api from 2.0.9 to 2.0.16
dependabot[bot] Aug 12, 2024
6ad59b0
Clean up `ThreadContextMap` implementations
ppkarwasz Jun 21, 2024
a8e8c76
Fail build for `static transitive` modules
ppkarwasz Sep 8, 2024
c825f4e
Implement `MessageFactory`-namespaced logger registry (#2936)
vy Sep 16, 2024
dab4c9c
Improvements on the logger message factory namespacing (#2936)
vy Sep 17, 2024
9b31ee4
Implement `MessageFactory`-namespaced logger registry (#2961)
vy Sep 17, 2024
9c8e5f0
Improvements on the logger message factory namespacing (#2961)
vy Sep 17, 2024
635a51a
Migrate `log4j-to-slf4j` to JUnit5 (#3040)
Realtin Oct 3, 2024
5bd7ee0
Rename artifact
ppkarwasz Nov 6, 2024
3b8acf7
Fix build
ppkarwasz Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 137 additions & 0 deletions log4j-api-to-slf4j/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to you under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-parent</artifactId>
<version>${revision}</version>
<relativePath>../parent</relativePath>
</parent>

<artifactId>log4j-api-to-slf4j</artifactId>

<name>Log4j API to SLF4J logging bridge</name>

<description>Forwards the Log4j API calls to SLF4J.
(Refer to the `log4j-slf4j[2]-impl` artifacts for forwarding SLF4J to the Log4j API.)</description>

<properties>
<!-- Dependency versions -->
<logback.version>1.5.12</logback.version>
<osgi.framework.version>1.8.0</osgi.framework.version>

<!--
~ OSGi and JPMS options
-->
<slf4j.support.range>[1.7,3)</slf4j.support.range>
<bnd-extra-package-options>
<!-- This bridge also support SLF4J 2.x -->
org.slf4j.*;version="${slf4j.support.range}"
</bnd-extra-package-options>
</properties>

<dependencies>

<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.framework</artifactId>
<version>${osgi.framework.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- For the JUnit extensions -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<plugins>

<!-- TODO: Fix parallel testing -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<reuseForks>false</reuseForks>
</configuration>
</plugin>

</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.logging.slf4j;

import org.apache.logging.log4j.util.ProviderActivator;
import org.osgi.annotation.bundle.Header;

@Header(name = org.osgi.framework.Constants.BUNDLE_ACTIVATOR, value = "${@class}")
@Header(
name = org.osgi.framework.Constants.BUNDLE_ACTIVATIONPOLICY,
value = org.osgi.framework.Constants.ACTIVATION_LAZY)
public class Activator extends ProviderActivator {

public Activator() {
super(new SLF4JProvider());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.logging.slf4j;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.logging.log4j.spi.CleanableThreadContextMap;
import org.apache.logging.log4j.util.SortedArrayStringMap;
import org.apache.logging.log4j.util.StringMap;
import org.slf4j.MDC;

/**
* Bind the ThreadContextMap to the SLF4J MDC.
*/
public class MDCContextMap implements CleanableThreadContextMap {

private static final StringMap EMPTY_CONTEXT_DATA = new SortedArrayStringMap(1);

static {
EMPTY_CONTEXT_DATA.freeze();
}

@Override
public void put(final String key, final String value) {
MDC.put(key, value);
}

@Override
public void putAll(final Map<String, String> m) {
for (final Entry<String, String> entry : m.entrySet()) {
MDC.put(entry.getKey(), entry.getValue());
}
}

@Override
public String get(final String key) {
return MDC.get(key);
}

@Override
public void remove(final String key) {
MDC.remove(key);
}

@Override
public void removeAll(final Iterable<String> keys) {
for (final String key : keys) {
MDC.remove(key);
}
}

@Override
public void clear() {
MDC.clear();
}

@Override
public boolean containsKey(final String key) {
final Map<String, String> map = MDC.getCopyOfContextMap();
return map != null && map.containsKey(key);
}

@Override
public Map<String, String> getCopy() {
final Map<String, String> contextMap = MDC.getCopyOfContextMap();
return contextMap != null ? contextMap : new HashMap<>();
}

@Override
public Map<String, String> getImmutableMapOrNull() {
return MDC.getCopyOfContextMap();
}

@Override
public boolean isEmpty() {
final Map<String, String> map = MDC.getCopyOfContextMap();
return map == null || map.isEmpty();
}

@Override
public StringMap getReadOnlyContextData() {
final Map<String, String> copy = getCopy();
if (copy.isEmpty()) {
return EMPTY_CONTEXT_DATA;
}
final StringMap result = new SortedArrayStringMap();
for (final Entry<String, String> entry : copy.entrySet()) {
result.putValue(entry.getKey(), entry.getValue());
}
return result;
}
}
Loading
Loading