Skip to content

Commit

Permalink
[INLONG-11455][Sort] Append the install/uninstall logs directly
Browse files Browse the repository at this point in the history
  • Loading branch information
qy-liuhuo committed Nov 10, 2024
1 parent c937edc commit ebad988
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public boolean install() {
OpenTelemetryAppender.install(SDK);
otelAppender.append(
new Log4jLogEvent.Builder()
.setLevel(this.logLevel)
.setLevel(Level.INFO)
.setMessage(new SimpleMessage("OpenTelemetryLogger installed"))
.build());
return true;
Expand All @@ -240,7 +240,7 @@ public boolean uninstall() {
if (appender instanceof OpenTelemetryAppender) {
appender.append(
new Log4jLogEvent.Builder()
.setLevel(this.logLevel)
.setLevel(Level.INFO)
.setMessage(new SimpleMessage("OpenTelemetryLogger uninstalled"))
.build());
config.getRootLogger().removeAppender(appender.getName());
Expand Down

0 comments on commit ebad988

Please sign in to comment.