Skip to content

Commit

Permalink
Logging now correctly prints information in JUL.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-langer committed Jul 29, 2024
1 parent bbf24fc commit 00bb41c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2023 Oracle and/or its affiliates.
* Copyright (c) 2019, 2024 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -100,6 +100,9 @@ private static void doConfigureLogging(boolean runtime) throws IOException {
if (runtime || NativeImageHelper.isBuildTime()) {
String when = runtime ? WHEN_RUNTIME : WHEN_INIT;
Logger.getLogger(JulProvider.class.getName()).info("Logging at " + when + " configured using " + source);
} else {
// build time without native image
Logger.getLogger(JulProvider.class.getName()).info("Logging at " + WHEN_RUNTIME + " configured using " + source);
}
}

Expand Down

0 comments on commit 00bb41c

Please sign in to comment.