Skip to content

Switch to Java Logging (java.util.logging)#110

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
cconlon:javaLogging
May 7, 2025
Merged

Switch to Java Logging (java.util.logging)#110
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
cconlon:javaLogging

Conversation

@cconlon
Copy link
Copy Markdown
Member

@cconlon cconlon commented May 7, 2025

This PR switches wolfcrypt-jni to use the Java Logging (java.util.logging) framework instead of using plain System.out.println() statements.

Using System.out.println() is not ideal for performance nor memory usage, since Strings are always allocated even if debug logging is disabled. Using Java Logging, and switching debug calls to use lambda style defers String allocation/creation until the debug log is actually used/printed.

@JacobBarthelmeh JacobBarthelmeh merged commit be7df09 into wolfSSL:master May 7, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants