Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9273389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:06:13+00:00 2026-06-18T16:06:13+00:00

Google App Engine uses java.util.logging.Logger (JUL) for all logging. Thus to log anything (and

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:06:14+00:00Added an answer on June 18, 2026 at 4:06 pm

    I’ve ran into this same problem, and yes the logging service can fail without errors. The best you’re going to get (until GAE improves the logging service API), is to cron a job to wake up, say, every minute, and perform a logger.info(...).

    Then run a LoggingService#fetchLogs(...), filtered to only retrieve the AppLogLine containing the most recent logger call, and check to make sure you can retrieve it. If you can’t, then the logger.info(...) failed, and you can have your app react however you like.

    I always expose a secure servlet on my GAE apps that pings the Capabilities Service and asks for a status check on each service. If the service is disabled or down for maintenance, I have an external monitor (that checks this URL every 5 mins) send me a text message. You can tie this “log checking” cron job into that kind of a service check.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Google App Engine Java application, which uses Appengine datastore for its
Google App Engine is a cloud computing architecture that supports java based web services
I am developing a Java application using Google App Engine that depends on a
I'm developing an application for Google App Engine which uses BigTable for its datastore.
I am deploying a Django app to Google App Engine. The app uses a
Currently Google App Engine supports both Python & Java. Java support is less mature.
I'm unit testing a google app engine app that uses the login setting in
In Google App Engine, all datastore operations in a transaction must operate on entities
I have been wondering: Has anyone successfully deployed a Google App Engine which uses
I just ran across this an Google App Engine article that uses that funny

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.