Google App Engine uses java.util.logging.Logger (JUL) for all logging. Thus to log anything (and then subsequently retrieve it via the LogService), you just log like you normally do with JUL:
private Logger logger = Logger.getLogger(this.class.getName());
// ...
public void doWhatever() {
logger.info("This will be logged.");
}
But if you read over the GAE tutorials/guides for their various service APIs (Memcache, Mail, Datastore, etc.), they all reiterate that you should always code for the possibility that one of their services are down. GAE even provides a CapabilitiesService that you can check before calling any service method to see if that service is currently enabled or not.
So I ask: is there ever a chance that JUL logging operation will ever fail:
logger.info("Can I ever fail and not get logged?");
If not, why? And if so, what can I do to "failover" in the case that JUL has choked? Thanks in advance.
logger.info(), notlogger.finfo(). Finfo is just ridiculous. - IAmYourFaja