Code example for Logger

Methods: log, severe

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);
		} 
	} 
 
}