private void logMissingResource(FacesContext ctx,String resourceName,String libraryName,Throwable t){
  Level level;
  if (!ctx.isProjectStage(ProjectStage.Production)) {
    level=Level.WARNING;
  }
 else {
    level=((t != null) ? Level.WARNING : Level.FINE);
  }
  if (libraryName != null) {
    if (LOGGER.isLoggable(level)) {
      LOGGER.log(level,"jsf.application.resource.unable_to_serve_from_library",new Object[]{resourceName,libraryName});
      if (t != null) {
        LOGGER.log(level,"",t);
      }
    }
  }
 else {
    if (LOGGER.isLoggable(level)) {
      LOGGER.log(level,"jsf.application.resource.unable_to_serve",new Object[]{resourceName});
      if (t != null) {
        LOGGER.log(level,"",t);
      }
    }
  }
}

private void logMissingResource ( FacesContext ctx , String resourceName , String libraryName , Throwable t ) { Level level ; if ( ! ctx . isProjectStage ( ProjectStage . Production ) ) { level = Level . WARNING ; } else { level = ( ( t != null ) ? Level . WARNING : Level . FINE ) ; } if ( libraryName != null ) { if ( LOGGER . isLoggable ( level ) ) { LOGGER . log ( level , "jsf.application.resource.unable_to_serve_from_library" , new Object [ ] { resourceName , libraryName } ) ; if ( t != null ) { LOGGER . log ( level , "" , t ) ; } } } else { if ( LOGGER . isLoggable ( level ) ) { LOGGER . log ( level , "jsf.application.resource.unable_to_serve" , new Object [ ] { resourceName } ) ; if ( t != null ) { LOGGER . log ( level , "" , t ) ; } } } }
log a message indicating a particular resource ( reference by name and / or library ) could not be found . if this was due to an exception , the exception provided will be logged as well .
