new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/ThreadSafeLogger.java
public static void init(String loggerName) {
    try {
      // create file handler
      Path resultDir = Files.createDirectories(Paths.get(TestConstants.LOGS_DIR,
          loggerName));
      FileHandler fileHandler = new FileHandler(
          Paths.get(resultDir.toString(), loggerName + ".out").toString(), true);
      SimpleFormatter formatter = new SimpleFormatter();
      fileHandler.setFormatter(formatter);
      // create logger
      LoggingFacade logger = LoggingFactory.getLogger(
          loggerName, "OperatorIntegrationTests", fileHandler);
      localLogger.set(logger);
    } catch (IOException ioe) {
      globalLogger.severe("Logger initialization failed with Exception {0}", ioe);
    }
  }
/**
   * Create a logger and set it in thread local.
   * @param loggerName name of the logger
   */
Create a logger and set it in thread local.
@param loggerName name of the logger
Create a logger and set it in thread local . @param loggerName name of the logger
public static void init(String loggerName) {
    try {
      Path resultDir = Files.createDirectories(Paths.get(TestConstants.LOGS_DIR,
          loggerName));
      FileHandler fileHandler = new FileHandler(
          Paths.get(resultDir.toString(), loggerName + ".out").toString(), true);
      SimpleFormatter formatter = new SimpleFormatter();
      fileHandler.setFormatter(formatter);
      LoggingFacade logger = LoggingFactory.getLogger(
          loggerName, "OperatorIntegrationTests", fileHandler);
      localLogger.set(logger);
    } catch (IOException ioe) {
      globalLogger.severe("Logger initialization failed with Exception {0}", ioe);
    }
  }
public static void init ( String loggerName ) { try { Path resultDir = Files . createDirectories ( Paths . get ( TestConstants . LOGS_DIR , loggerName ) ) ; FileHandler fileHandler = new FileHandler ( Paths . get ( resultDir . toString ( ) , loggerName + ".out" ) . toString ( ) , true ) ; SimpleFormatter formatter = new SimpleFormatter ( ) ; fileHandler . setFormatter ( formatter ) ; LoggingFacade logger = LoggingFactory . getLogger ( loggerName , "OperatorIntegrationTests" , fileHandler ) ; localLogger . set ( logger ) ; } catch ( IOException ioe ) { globalLogger . severe ( "Logger initialization failed with Exception {0}" , ioe ) ; } }
Create a logger and set it in thread local.
Create a logger and set it in thread local .
// create file handler // create logger