public void setApi ( String api ) { api = api . trim ( ) ; if ( "liberty" . equalsIgnoreCase ( api ) ) { this . api = "liberty" ; } else if ( "websphere" . equalsIgnoreCase ( api ) ) { this . api = "tr" ; } else if ( "tr" . equalsIgnoreCase ( api ) ) { this . api = "tr" ; } else if ( "jsr47" . equalsIgnoreCase ( api ) ) { this . api = "java-logging" ; } else if ( "java" . equalsIgnoreCase ( api ) ) { this . api = "java-logging" ; } else if ( "java.logging" . equalsIgnoreCase ( api ) ) { this . api = "java-logging" ; } else if ( "java-logging" . equalsIgnoreCase ( api ) ) { this . api = "java-logging" ; } else { log ( "Invalid trace type " + api , Project . MSG_ERR ) ; } }
Set the type of trace API to use .