Code example for Logger

Methods: info, severe

0
		return (url.toString() + "/validate.faces");
	} 
 
	private boolean saveUserObject(String uuid)
	{ 
		log.info("SAVE USER");
		log.info(user.getUsername());
			 
		if (!cachedir.exists()) {
			if (!cachedir.mkdirs()) {
				log.severe("failed to create caching dir: " + cachedir);
				return false; 
			} 
		} 
 
		try  
		{ 
			File userfile = new File(cachedir, uuid);
			userfile.deleteOnExit();
			FileOutputStream stream = new FileOutputStream(userfile);
			BufferedOutputStream buffer = new BufferedOutputStream(stream);
			ObjectOutputStream objOut = new ObjectOutputStream(buffer);
			objOut.writeObject(user);
			objOut.close();
			log.info("Saved user details to "  + userfile);
		} 
		catch(Exception e)
		{ 
			e.printStackTrace();
			return false;