Skip to content

Conversation

graalvmbot
Copy link
Collaborator

This PR contains the following changes:

  • Added a logging mechanism (see Debug.stderr(), DebugStdErrLog, and StdErrWriter) that can be used from uninterruptible code and that is mostly compatible with Log.log().
  • Log no longer implements AutoCloseable. This gets rid of a lot of IDE warnings.
  • Refactorings
    • Log is now an interface
    • AbstractLog now contains most of the logging implementation that was in RealLog before.
    • Moved NoopLog and LogOutputStream to separate files (were in Log.java before).
    • Moved static fields from Log to new class Loggers.
  • Small fixes
    • Fixed a few inconsistencies around the logging of null values.
    • Fixed an issue where JDKUtils.getBacktrace(...) would throw a fatal error in case of a race condition.
    • Use HANDLE instead of int for FileAPI functions on Windows.
  • Various smaller cleanups.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 4, 2025
@graalvmbot graalvmbot merged commit 0f8b168 into master Jul 5, 2025
12 of 13 checks passed
@graalvmbot graalvmbot deleted the chaeubl/GR-66562 branch July 5, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants