0

I do not have any exclusions or anything set, but INFO level logs are not showing in Stackdriver from my Cloud Endpoints java code.

NOTE: INFO level logs generated by GAE are logging, such as:

enter image description here

just not the ones in my code.

I'm using Cloud Endpoints java

Here's a snippet of my Java code

import java.util.logging.Logger;
import java.util.logging.Level;

...

LOGGER.log(Level.WARNING,  "testing warning log 1");
LOGGER.log(Level.INFO,  "testing info log");
LOGGER.log(Level.WARNING,  "testing warning log 2");

enter image description here

enter image description here

Claytronicon
  • 1,437
  • 13
  • 14
  • 1
    Try [printing the log configuration](https://stackoverflow.com/questions/44882648/logging-not-showing/44888306#44888306) and see if there are any handlers installed on the root logger. You might have to install a ConsoleHandler. That example won't work directly because you won't be able to access the LogManager in GAE. – jmehrens Sep 07 '18 at 22:42
  • Thank you, turns out the default log level was set to warning in WEB_INF/logging.properties. D'oh! – Claytronicon Sep 10 '18 at 19:16

0 Answers0