Skip to content

Commit

Permalink
change constructor access modifier instead of
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Jan 8, 2024
1 parent 7029a8b commit fe42ecb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slf4j-simple/src/main/java/org/slf4j/simple/SimpleLogger.java
Expand Up @@ -224,7 +224,7 @@ static void init() {
* Package access allows only {@link SimpleLoggerFactory} to instantiate
* SimpleLogger instances.
*/
SimpleLogger(String name) {
protected SimpleLogger(String name) {
this.name = name;

String levelString = recursivelyComputeLevelString();
Expand Down Expand Up @@ -439,8 +439,8 @@ private void innerHandleNormalizedLoggingCall(Level level, List<Marker> markers,
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:
Expand All @@ -452,7 +452,7 @@ protected String renderLevel(int level) {
case LOG_LEVEL_ERROR:
return "ERROR";
}
throw new IllegalStateException("Unrecognized level ["+level+"]");
throw new IllegalStateException("Unrecognized level ["+levelInt+"]");
}

public void log(LoggingEvent event) {
Expand Down

0 comments on commit fe42ecb

Please sign in to comment.