Thanks for the responses. https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google- cloud-logging#add-a-stackdriver-logging-handler-to-a-logger
The link that you mention, says that logging can be setup using logging.properties. Wondering in what directory should logging.properties reside in the flex setup. On Wed, Apr 19, 2017 at 2:21 AM, 'Jisha Abubaker' via Google App Engine < [email protected]> wrote: > > Hi Vinay > > To get started, I'd recommend looking at this section on Stackdriver > logging using java.util.logging > https://github.com/GoogleCloudPlatform/google- > cloud-java/tree/master/google-cloud-logging#add-a- > stackdriver-logging-handler-to-a-logger > > It's on the page that Justin just shared. > We're also in the process of adding support with more logging frameworks > like Slf4j. > > Thanks > Jisha > > On Friday, April 14, 2017 at 11:25:29 PM UTC-7, Justin Beckwith wrote: >> >> Greetings folks! >> With the non-compat runtimes in the flexible environment, we rely on >> client logging libraries to make request correlation work. >> >> https://github.com/GoogleCloudPlatform/google-cloud-java/ >> tree/master/google-cloud-logging >> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fgoogle-cloud-java%2Ftree%2Fmaster%2Fgoogle-cloud-logging&sa=D&sntz=1&usg=AFQjCNHcbcABlfnD4ktBuJHiWSFJD9ndZA> >> >> Amir / Rajeev / Les should be able to help point you in the right >> direction from here :) >> >> On Fri, Apr 14, 2017 at 9:15 PM, Vinay Chitlangia <[email protected]> >> wrote: >> >>> Hi, >>> Once we moved to non-compat flex, the logs emitted as part of the >>> request are coming out in stdout stream instead of with part of the request >>> (all logs >>> with a particular request, used to come together in the request logs of >>> compat runtime). >>> >>> Attached is the screenshot of the logs. The various WARNING logs are >>> those written as part of the request (which is the first line). >>> Notice that the logs are not bundled together with the request. >>> >>> The dockerfile we are using is: >>> >>> FROM gcr.io/google-appengine/jetty9 >>> >>> RUN apt-get -q update && \ >>> >>> apt-get -y -q --no-install-recommends -t jessie-backports install >>> openjdk-8-jdk && \ >>> >>> apt-get clean && \ >>> >>> rm /var/lib/apt/lists/*_* >>> >>> ADD backend.war $JETTY_BASE/webapps/root.war >>> >>> WORKDIR $JETTY_BASE >>> >>> RUN java -jar $JETTY_HOME/start.jar --approve-all-licenses \ >>> >>> --add-to-startd=jmx,stats,hawtio,requestlog \ >>> >>> && chown -R jetty:jetty $JETTY_BASE >>> >>> >>> And finally the app.yaml looks like: >>> >>> runtime: custom >>> >>> env: flex >>> >>> >>> handlers: >>> >>> - url: /.* >>> >>> script: this field is required, but ignored >>> >>> secure: always >>> >>> >>> resources: >>> >>> cpu: 2 >>> >>> memory_gb: 10 >>> >>> automatic_scaling: >>> >>> min_num_instances: 1 >>> >>> max_num_instances: 10 >>> >>> cool_down_period_sec: 120 >>> >>> cpu_utilization: >>> >>> target_utilization: 0.5 >>> >>> >>> env_variables: >>> >>> USE_GAE_MEMCACHE: 1 >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google App Engine" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/google-appengine. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/google-appengine/9a919731-3f0a-4432-94c1-833c2024dbd6% >>> 40googlegroups.com >>> <https://groups.google.com/d/msgid/google-appengine/9a919731-3f0a-4432-94c1-833c2024dbd6%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> >> Justin Beckwith | Google Cloud Platform | @justinbeckwith >> <http://twitter.com/JustinBeckwith> | http://jbeckwith.com >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google App Engine" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/google-appengine/WO8bS2d9Xu4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-appengine. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/google-appengine/8f87a375-0b4a-4bb5-9c8a- > 864189af7c5b%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/8f87a375-0b4a-4bb5-9c8a-864189af7c5b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CADt9hj8bqeJ_G%3DEPqjY6eCm3K_1PX3TRQyyej8QUmk_44aRMpg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
