APISonar


org.apache.uima.util.Logger.log

> org > apache > uima > util > Logger > log
org APIs apache APIs uima APIs util APIs Logger APIs log APIs

Example 1
private static Object getOptionalParameter(UimaContext context,
                                             String parameter)
      throws ResourceInitializationException {

    Object value = context.getConfigParameterValue(parameter);

    Logger logger = context.getLogger();

    if (logger.isLoggable(Level.INFO)) {
      logger.log(Level.INFO, parameter + " = " +
          (value != null ? value.toString() : "not set"));
    }

    return value;
  }