Logging Google App Engine application

后端 未结 4 1034
野性不改
野性不改 2020-12-30 02:47

I have made my GAE application using the development server, but now when I deploy it to GAE cloud, some features don\'t work (some elements are missing), but no exceptions

相关标签:
4条回答
  • 2020-12-30 03:24

    I assume you are asking for the Log console to see the error info and such. if yes then open your Google app engine launcher and click on your app and you can see a Logs button on the top next to Run and Stop. Good luck!

    0 讨论(0)
  • 2020-12-30 03:25

    The article that was marked as correct answer is a little bit outdated.

    Today if you have to read your logs or want remotely debug your app you can use

    • Google Stackdriver Logging (web)
    • Google Stackdriver Error Reporting (web)
    • Google Stackdriver Debug (web)
    • gcloud command-line interface to Google Cloud (console, just type gcloud app logs tail to see latests log from your deployed app)

    Java GAE applications still write information to the log files using java.util.logging.Logger.

    Again, if you want more information about the Google App Engine Java logging read the documentation.

    0 讨论(0)
  • 2020-12-30 03:44

    Google App Engine applications written in Java can write information to the log files using java.util.logging.Logger. Log data for an application can be viewed and analyzed using the Administration Console, or downloaded using appcfg.sh request_logs.

    More info in the Logging documentation.

    0 讨论(0)
  • 2020-12-30 03:44

    You will have to configure logging via java.util.logging.Logger and a logging.properties file in your classpath, preferably in your WEB-INF/classes/ directory. e.g. if you want all your logging to be at the INFO level, the contents of this file should be:

    # Set the default logging level for all loggers to INFO
    .level = INFO
    
    0 讨论(0)
提交回复
热议问题