/** * Sets the logging level for the target associated with the unique ID searchId. * @param searchId the search ID * @param level the log level */ public void changeTargetLevel(String searchId, String level) { Target selectedTarget = Log.getTarget(searchId); if (selectedTarget != null) { selectedTarget.setLevel(new Short(level).shortValue()); } }
/** * Sets the logging level for the target associated with the unique ID searchId. * @param searchId the search ID * @param level the log level */ public void changeTargetLevel(String searchId, String level) { Target selectedTarget = Log.getTarget(searchId); if (selectedTarget != null) { selectedTarget.setLevel(new Short(level).shortValue()); } }
/** * Sets the logging level for the target associated with the unique ID searchId. * @param searchId * @param level */ public void changeTargetLevel(String searchId, String level) { Target selectedTarget = Log.getTarget(searchId); if (selectedTarget != null) { selectedTarget.setLevel(new Short(level).shortValue()); } }