Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure Logback is refreshed before application starts (#8238)
- Loading branch information
Showing
8 changed files
with
370 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
runtime/src/main/java/io/micronaut/logging/LoggingSystemException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright 2017-2022 original authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.micronaut.logging; | ||
|
||
/** | ||
* Thrown when something goes wrong on Logging System. | ||
* | ||
* @author Luis Duarte | ||
* @since 3.8 | ||
*/ | ||
public class LoggingSystemException extends RuntimeException { | ||
|
||
/** | ||
* Create exception with detailed message and cause. | ||
* | ||
* @param message the detail message (which is saved for later retrieval | ||
* by the {@link #getMessage()} method). | ||
* @param cause the cause (which is saved for later retrieval by the | ||
* {@link #getCause()} method). (A {@code null} value is | ||
* permitted, and indicates that the cause is nonexistent or | ||
* unknown.) | ||
*/ | ||
public LoggingSystemException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* Create exception with detailed message and cause. | ||
* | ||
* @param message the detail message (which is saved for later retrieval | ||
* by the {@link #getMessage()} method). | ||
*/ | ||
public LoggingSystemException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
180 changes: 180 additions & 0 deletions
180
...c/main/resources/META-INF/native-image/io.micronaut/micronaut-runtime/reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
[ | ||
{ | ||
"name": "org.slf4j.impl.StaticLoggerBinder", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.DateConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.MessageConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.ThrowableProxyConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.NopThrowableInformationConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.ContextNameConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.BoldYellowCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.LoggerConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.ReplacingCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.BoldBlueCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.CyanCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.RedCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.WhiteCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.PropertyConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.ExtendedThrowableProxyConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.RootCauseFirstThrowableProxyConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.MethodOfCallerConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.LevelConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.IdentityCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.BoldWhiteCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.MarkerConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.BoldCyanCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.BoldMagentaCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.RelativeTimeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.MagentaCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.ClassOfCallerConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.LineOfCallerConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.FileOfCallerConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.BoldGreenCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.LocalSequenceNumberConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.YellowCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.ExtendedThrowableProxyConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.color.HighlightingCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.GrayCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.MDCConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.ClassOfCallerConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.BoldRedCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.GreenCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.pattern.color.BlackCompositeConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.ThreadConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.pattern.LineSeparatorConverter", | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.classic.encoder.PatternLayoutEncoder", | ||
"allPublicMethods":true, | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "ch.qos.logback.core.ConsoleAppender", | ||
"allPublicMethods":true, | ||
"allDeclaredConstructors": true | ||
}, | ||
{ | ||
"name": "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl", | ||
"allDeclaredConstructors": true | ||
} | ||
] |
Oops, something went wrong.