Skip to content

Commit

Permalink
single map of loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
barinek committed May 31, 2024
1 parent a887c35 commit b7cfa3e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import java.util.concurrent.ConcurrentHashMap


class BasicJSONLoggerFactory : ILoggerFactory {
private var loggerMap = ConcurrentHashMap<String, Logger>();
companion object {
private var loggerMap = ConcurrentHashMap<String, Logger>();
}

override fun getLogger(name: String): Logger {
return loggerMap.computeIfAbsent(name) {
Expand Down

0 comments on commit b7cfa3e

Please sign in to comment.