Skip to content

Commit

Permalink
Align the logging format of the IosLoggerBackend with the XLogger.
Browse files Browse the repository at this point in the history
Replaces the logging handler with a handler that supports the same format as the XLogger. Otherwise only the raw string is logged to console.

PiperOrigin-RevId: 591315434
  • Loading branch information
j2objc-copybara authored and copybara-github committed Dec 18, 2023
1 parent 2fe427f commit e013a57
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ public String format(LogRecord record) {
private Object nativeLog;

public IOSLogHandler() {
setFormatter(new IOSLogFormatter());
this(new IOSLogFormatter());
}

public IOSLogHandler(Formatter customFormatter) {
setFormatter(customFormatter);
}

@Override
Expand Down

0 comments on commit e013a57

Please sign in to comment.