Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine - Can not find my logging messages

I can not find the results of my logging calls. To log messages I tried both:

System.out.println("some message");  

and

Logger logger = Logger.getLogger("MyLogger"); // Logger is java.util.logging.Logger   // ...   logger.info("some message");  

I have deployed my app and after few tests I decided check out some log messages. But there were no messages. I changed minimum severity level to "Info" from default "Error", and only messages i've seen were service messages like this:

http://dl.dropbox.com/u/1678938/logs.png

I would also be grateful if someone show a little snippet with logging some data (if it's works) - I suspect my problem may be the one of that stupid problems when somewhat incorrectly located comma can be the cause of situation.

like image 582
Alexander Avatar asked Oct 30 '10 19:10

Alexander


People also ask

What is Google App Engine for Google App Engine is for detecting malicious apps?

Google App Engine (GAE) is a platform-as-a-service product that provides web app developers and enterprises with access to Google's scalable hosting and tier 1 internet service. GAE requires that applications be written in Java or Python, store data in Google Bigtable and use the Google query language.

How do I get rid of Google fluent?

Uninstalling the agent Note: If you added your own fluentd configuration files, copy them from the agent's configuration directory for safekeeping. In the Windows Control Panel, choose Uninstall a program. You should see the Logging agent in the list of programs that you can uninstall.


2 Answers

Could it be that your logging.properties is setting the default value to WARNING?

Ours has this in our war/WEB-INF/logging.properties file:

# Set the default logging level for all loggers to WARNING .level = WARNING  # Default level for subpackages of 'server' will be INFO com.company.whatever.server.level=INFO 
like image 64
Cuga Avatar answered Sep 28 '22 03:09

Cuga


Problem has shrunk into more concrete form - App Engine "eats" info-messages, but shows others, such as error and warning messages.

After this call I have eventually seen my info messages:

log.setLevel(Level.INFO); 

But it is still not clearly - why info-messages weren't being shown. Google's manual states:

Everything the servlet writes to the standard output stream (System.out) and standard error stream (System.err) is captured by App Engine and recorded in the application logs. Lines written to the standard output stream are logged at the "INFO" level, and lines written to the standard error stream are logged at the "WARNING" level.

like image 24
Alexander Avatar answered Sep 28 '22 03:09

Alexander