Merge pull request #281 from josephw/typo-in-reload4j-logger-adapter-variable-name

Fix typo abbreviation for fully-qualified class name.
This commit is contained in:
Ceki Gülcü 2022-04-02 21:56:18 +02:00 committed by GitHub
commit 045f502fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -155,13 +155,13 @@ public final class Reload4jLoggerAdapter extends LegacyAbstractLogger implements
String formattedMessage = MessageFormatter.basicArrayFormat(event.getMessage(), event.getArgumentArray());
LocationInfo locationInfo = null;
String fcqn = null;
String fqcn = null;
if (event instanceof SubstituteLoggingEvent) {
locationInfo = new LocationInfo(NA_SUBST, NA_SUBST, NA_SUBST, "0");
fcqn = FQCN_SUBSTITUE;
fqcn = FQCN_SUBSTITUE;
} else {
fcqn = FQCN_FLUENT;
fqcn = FQCN_FLUENT;
}
ThrowableInformation ti = null;
@ -169,7 +169,7 @@ public final class Reload4jLoggerAdapter extends LegacyAbstractLogger implements
if (t != null)
ti = new ThrowableInformation(t);
org.apache.log4j.spi.LoggingEvent log4jEvent = new org.apache.log4j.spi.LoggingEvent(fcqn, logger, event.getTimeStamp(), log4jLevel, formattedMessage,
org.apache.log4j.spi.LoggingEvent log4jEvent = new org.apache.log4j.spi.LoggingEvent(fqcn, logger, event.getTimeStamp(), log4jLevel, formattedMessage,
event.getThreadName(), ti, null, locationInfo, null);
return log4jEvent;