change constructor access modifier instead of

Signed-off-by: Ceki Gulcu <ceki@qos.ch>
This commit is contained in:
Ceki Gulcu 2024-01-08 15:16:08 +01:00
parent 85d905cb6e
commit 42501efe52
1 changed files with 4 additions and 4 deletions

View File

@ -224,7 +224,7 @@ public class SimpleLogger extends LegacyAbstractLogger {
* Package access allows only {@link SimpleLoggerFactory} to instantiate
* SimpleLogger instances.
*/
SimpleLogger(String name) {
protected SimpleLogger(String name) {
this.name = name;
String levelString = recursivelyComputeLevelString();
@ -439,8 +439,8 @@ public class SimpleLogger extends LegacyAbstractLogger {
write(buf, t);
}
protected String renderLevel(int level) {
switch (level) {
protected String renderLevel(int levelInt) {
switch (levelInt) {
case LOG_LEVEL_TRACE:
return "TRACE";
case LOG_LEVEL_DEBUG:
@ -452,7 +452,7 @@ public class SimpleLogger extends LegacyAbstractLogger {
case LOG_LEVEL_ERROR:
return "ERROR";
}
throw new IllegalStateException("Unrecognized level ["+level+"]");
throw new IllegalStateException("Unrecognized level ["+levelInt+"]");
}
public void log(LoggingEvent event) {