code: public static void initialize(String loggerLevel) {
          if (!INIT.compareAndSet(false, true)) {
              return;
          }
  
          BasicConfigurator.resetConfiguration();
          ConsoleAppender consoleAppender = new ConsoleAppender(
              new PatternLayout("<%d{yyMMdd HHmmss} %5p %C{1}:%L> %m%n"), ConsoleAppender.SYSTEM_ERR);
          BasicConfigurator.configure(consoleAppender);
  
          Level level;
  
          String logLevel;
  
          if (loggerLevel != null) {
              logLevel = loggerLevel.toLowerCase();
          } else {
              logLevel = "default";
          }
  
          switch (logLevel) {
              case "all":
                  level = Level.ALL;
                  break;
              case "debug":
                  level = Level.DEBUG;
                  break;
              case "error":
                  level = Level.ERROR;
                  break;
              case "fatal":
                  level = Level.FATAL;
                  break;
              case "info":
                  level = Level.INFO;
                  break;
              case "off":
                  level = Level.OFF;
                  break;
              case "trace":
                  level = Level.TRACE;
                  break;
              case "warn":
                  level = Level.WARN;
                  break;
              default:
                  level = Level.INFO;
                  break;
          }
  
          Logger.getRootLogger().setLevel(Level.OFF);
          Logger.getLogger("org.finra").setLevel(level);
  
          System.err.println("Set loglevel to " + level.toString());
      }
docs: Initializes log4j
  
  @param loggerLevel log level to initialize to