Open mwolff-bay opened 1 year ago
Hey @mwolff-bay, could you give some more information on what you're seeing? Are the logs being ignored, or is there an error being thrown somewhere? Have you tried deploying locally, or only on App Engine? Does any part of the documentation you linked work?
@daniel-sanche Hi, I tried it locally, as well as on App Engine (standard env). The logs will be shown, and when I change something in the logging.properties (e.g. the log level), it will be considered. But the SampleEnhancer won't be called at all.
Hi @mwolff-bay, are you still running into this issue? If so, could you provide us a code example of the latest repro? Thanks!
Hi Cindy, I didn't try it again. Meanwhile I've implemented another solution by directly using the logging api.
Thank you! We will take a look at it and see if we can repro from our side.
Hi all,
I try to run/deploy a Google-AppEngine application which uses java.util.logging for creating log entries utilizing the feature of configuring the (Google-)LoggingHandler in combination with a specific LoggingEnhancer. I followed the instructions documented at Setting Up Cloud Logging for Java, but I didn't succeed. Pls. find here HelloWord-JAVA8 a demo application based on GoogleCloudPlatform HelloWorld, which should make usage of this feature.
From my point of view the configured LoggingHandler and the attached LoggingEnhancer will be ignored, resp. doesn't work at all.
I also tried it in a JAVA11 environment (which - in the end - is the desired one), but same result.
Note: You've to adapt the projectId accordingly in the pom.
Regards, Michael