Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Log4j API to JUL bridge #3

Merged
merged 65 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
54e32e7
Make new home for Log4j2
rgoers Feb 6, 2012
cd18eb5
LOG4J2-3282: log4j-to-jul JDK Logging Bridge (#653)
vorburger Jan 7, 2022
7e588d3
LOG4J2-3282 Support source class & method in to-jul (#698)
vorburger Jan 14, 2022
ddd7024
Increase to-jul priority from 15 to 20 (#699)
vorburger Jan 14, 2022
ae55d0f
Add inceptionYear 2022 in to-jul POM (#702)
vorburger Jan 16, 2022
10adb70
Additional log4j-to-jul test coverage for correct formatting (#712)
carterkozak Jan 18, 2022
3d26b85
Clean up pom.xml files
jvz Jan 22, 2022
6f2e06f
Some of the necessary revapi changes
rgoers Feb 23, 2022
82a2c79
[maven-release-plugin] prepare release log4j-2.17.2-rc1
rgoers Feb 23, 2022
d462591
[maven-release-plugin] prepare for next development iteration
rgoers Feb 23, 2022
97d4c24
[maven-release-plugin] prepare release log4j-2.18.0-rc1
rgoers Jun 28, 2022
2d94000
[maven-release-plugin] prepare for next development iteration
rgoers Jun 28, 2022
0bf8e3d
[LOG4J2-3546] Switch from `osgi.serviceloader` to `Activator`
ppkarwasz Jul 3, 2022
ab33e0c
[LOG4J2-3564] Fix NPE when root logger level is null
Jul 28, 2022
43ed263
Use `junit-bom`
ppkarwasz Sep 6, 2022
90670a7
[maven-release-plugin] prepare release log4j-2.19.0-rc1
rgoers Sep 9, 2022
dcfb1a0
[maven-release-plugin] prepare for next development iteration
rgoers Sep 9, 2022
0063ec4
[maven-release-plugin] prepare release log4j-2.19.0-rc1
rgoers Sep 9, 2022
dbd3c55
[maven-release-plugin] prepare for next development iteration
rgoers Sep 9, 2022
fdcd7b7
[maven-release-plugin] prepare release log4j-2.19.0-rc2
rgoers Sep 13, 2022
2ec88ac
[maven-release-plugin] prepare for next development iteration
rgoers Sep 13, 2022
e8dc8ba
Fix new snapshot version
ppkarwasz Sep 16, 2022
caba4d3
Add scopes to child POM dependencies
ppkarwasz Sep 16, 2022
376d098
Sort dependencies in POMs
ppkarwasz Sep 18, 2022
6f4893c
Delegates plugin versions to ASF parent
ppkarwasz Sep 18, 2022
b34c417
Centralize plugin versions in main POM
ppkarwasz Oct 2, 2022
79e9e4a
Remove no-op plugin execution
ppkarwasz Oct 18, 2022
66ebed4
LOG4J2-3628 Replace `maven-changes-plugin` with `log4j-changelog` (#1…
vy Jan 13, 2023
1872837
Simplify site generation (#1166)
vy Jan 16, 2023
9e3b6b4
Fix Javadoc generation and links for the site
vy Feb 12, 2023
042791c
Remove `revapi` leftovers
vy Feb 12, 2023
3149f64
Remove Maven `<reporting>` blocks, since reporting is disabled
vy Feb 14, 2023
2fc77e6
[maven-release-plugin] prepare release log4j-2.20.1-rc1
rgoers Feb 18, 2023
976955c
[maven-release-plugin] prepare for next development iteration
rgoers Feb 18, 2023
95164d1
[maven-release-plugin] prepare release log4j-2.20.1-rc1
rgoers Feb 18, 2023
60d92f3
Revert version update
rgoers Feb 18, 2023
9f548c3
[maven-release-plugin] prepare release log4j-2.20.0-rc1
rgoers Feb 18, 2023
b0ca80c
[maven-release-plugin] prepare for next development iteration
rgoers Feb 18, 2023
bec4cf2
[maven-release-plugin] rollback the release of log4j-2.20.0-rc1
rgoers Feb 18, 2023
a3d3c2a
[maven-release-plugin] prepare release log4j-2.20.0-rc1
rgoers Feb 18, 2023
c056085
[maven-release-plugin] prepare for next development iteration
rgoers Feb 18, 2023
4953e55
Renormalize Java file line endings
ppkarwasz Mar 29, 2023
11bffc1
Apply Spotless to all files
Apr 25, 2023
41fa3ae
Use `final` whenever possible
Jun 4, 2023
07cf214
Bump version to 2.21.0-SNAPSHOT
ppkarwasz Sep 20, 2023
feb7b26
Remove references to `maven-bundle-plugin`
ppkarwasz Sep 25, 2023
13fc4b8
Replace explicit versions with property
ppkarwasz Sep 26, 2023
3a29d49
Add BND configuration to bridges
ppkarwasz Sep 29, 2023
1d25eb1
Migrate changelog, site, and docs to the new infra
vy Oct 5, 2023
0cf4a70
Swap `/pom.xml` and `/log4j-bom/pom.xml`
vy Oct 5, 2023
d63f005
Remove `log4j-core` from some processor paths
ppkarwasz Oct 6, 2023
f9e89a4
Add `log4j-core` to some modules processor path
ppkarwasz Oct 6, 2023
ded9f18
Add OSGi package versioning and fix API breaking changes
ppkarwasz Oct 8, 2023
85cf5c2
Remove unused Maven properties
vy Nov 1, 2023
d59fd61
Apply Palantir formatter
vy Nov 16, 2023
64230e5
Update to-jul test to JUnit 5
jvz Jan 17, 2022
2cd0208
Remove reflection from `log4j-to-jul` and `log4j-to-slf4j`
ppkarwasz Mar 19, 2024
3697a1c
Clean up `ThreadContextMap` implementations
ppkarwasz Jun 21, 2024
85f30a4
Fail build for `static transitive` modules
ppkarwasz Sep 8, 2024
b77e31e
Implement `MessageFactory`-namespaced logger registry (#2936)
vy Sep 16, 2024
ac26269
Improvements on the logger message factory namespacing (#2936)
vy Sep 17, 2024
3cb0b39
Implement `MessageFactory`-namespaced logger registry (#2961)
vy Sep 17, 2024
524c222
Improvements on the logger message factory namespacing (#2961)
vy Sep 17, 2024
cc8eedb
Rename `log4j-to-jul` to `log4j-api-to-jul`
ppkarwasz Nov 6, 2024
9530a3e
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
73 changes: 73 additions & 0 deletions log4j-api-to-jul/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?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-jdk-parent</artifactId>
<version>${revision}</version>
<relativePath>../parent</relativePath>
</parent>

<artifactId>log4j-api-to-jul</artifactId>
<packaging>jar</packaging>
<name>Log4j API to JUL logging bridge</name>
<description>The Apache Log4j binding between Log4j 2 API and java.util.logging (JUL).</description>

<inceptionYear>2022</inceptionYear>

<properties>
<!-- Dependency versions -->
<osgi.framework.version>1.8.0</osgi.framework.version>
</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.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-testlib</artifactId>
<version>33.3.1-jre</version>
<scope>test</scope>
</dependency>

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

</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* 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.log4j.tojul;

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

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

public Activator() {
super(new JULProvider());
}
}
Loading
Loading