Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion log4j-1.2-api/src/main/java/org/apache/log4j/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Logger extends Category {
*/
private static final String FQCN = Logger.class.getName();

public static Logger getLogger(final Class<?> clazz) {
public static Logger getLogger(@SuppressWarnings("rawtypes") final Class clazz) {
// Depth 2 gets the call site of this method.
return LogManager.getLogger(clazz.getName(), StackLocatorUtil.getCallerClassLoader(2));
}
Expand Down
8 changes: 8 additions & 0 deletions src/changelog/.2.x.x/3030_fix_log4j1_getLogger.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://logging.apache.org/xml/ns"
xsi:schemaLocation="https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
type="fixed">
<issue id="3030" link="https://github.com/apache/logging-log4j2/pull/3030"/>
<description format="asciidoc">Fix `getLogger()` source incompatibility in Log4j 1 to Log4j 2 API Bridge (i.e., `log4j-1.2-api`)</description>
</entry>