Code example for Logger

Methods: logsevere

0
	public void set(String attributeName, Object attributeValue) {
		try { 
			if(attributeValue instanceof String) {
				getJsonObject().put(attributeName, attributeValue);
			} else { 
				logger.severe("FIXME: Not Implemented: cannot set property of class " + attributeValue.getClass());
			} 
		} catch (JSONException e) {
			logger.log(Level.SEVERE, "Cannot set property {" + attributeName + "}.", e);
		} 
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE