public DeprecationLogger(ESLogger parentLogger){
  String name=parentLogger.getName();
  if (name.startsWith("org.elasticsearch")) {
    name=name.replace("org.elasticsearch.","org.elasticsearch.deprecation.");
  }
 else {
    name="deprecation." + name;
  }
  this.logger=ESLoggerFactory.getLogger(parentLogger.getPrefix(),name);
}

public DeprecationLogger ( ESLogger parentLogger ) { String name = parentLogger . getName ( ) ; if ( name . startsWith ( "org.elasticsearch" ) ) { name = name . replace ( "org.elasticsearch." , "org.elasticsearch.deprecation." ) ; } else { name = "deprecation." + name ; } this . logger = ESLoggerFactory . getLogger ( parentLogger . getPrefix ( ) , name ) ; }
creates a new deprecation logger based on the parent logger . automatically prefixes the logger name with " deprecation " , if it starts with " org . elasticsearch . " , it replaces " org . elasticsearch " with " org . elasticsearch . deprecation " to maintain the " org . elasticsearch " namespace .
