The important thing was setting the classes your interested in logs for in
your: *logging.properties* if you don't do that, you won't see anything.

>From one of mine:

# Set the default logging level for all loggers to INFO
*.level = INFO*

# Loggers
*com.example.bigtable.managedvms.level=ALL*

org.apache.http.level=OFF
org.apache.http.wire.level=OFF
com.google.apphosting.repackaged.org.apache.http.wire.level=OFF

com.google.apphosting.vmruntime.VmAppLogsWriter.level=OFF
com.google.apphosting.vmruntime.VmApiProxyDelegate=OFF
com.google.apphosting.vmruntime.level=OFF


On Thu, Jun 4, 2015 at 2:49 AM, Paolo Rascuna <paolo.rasc...@imagini.net>
wrote:

> Thank you Les, but that's not working for me... I tried that already, but
> that's the docker logs output
>
> $ docker logs -f `docker ps -q`
> Info: Limiting Java heap size to: 1456M
> Running locally and DBG_ENABLE is set, enabling standard Java debugger
> agent
> Listening for transport dt_socket at address: 5005
> 2015-06-04 09:05:08.860:INFO::main: Logging initialized @571ms
> 2015-06-04 09:05:09.001:INFO::main: Redirecting stderr/stdout to
> /var/log/app_engine/STDERR.2015_06_04.log//var/log/app_engine/STDOUT.2015_06_04.log
>
>
> On Wednesday, 3 June 2015 18:09:45 UTC+1, Les Vogel wrote:
>>
>> There are changes coming to improve things in the next few weeks.  In the
>> mean time, here's what I do:
>>
>> Make sure .level=INFO or what you need in your logging.properties .  For
>> the class(es) I'm working with I set the class logging explicitly to:
>> com.example.bigtable.managedvms.level=ALL
>>
>> Then in a separate window, I run the following script on my Mac:
>>
>> #!/bin/bash
>> docker logs -f `docker ps -q`
>>
>>
>> On Wed, Jun 3, 2015 at 6:39 AM, Paolo Rascuna <paolo....@imagini.net>
>> wrote:
>>
>>> Hi,
>>> I have a java project running on Managed VM, and I
>>> use gcloud-maven-plugin to run the app locally, simply
>>>
>>> mvn gcloud:run
>>>
>>> I would like to see my application logs straight in the console, but so
>>> far I can only see the access logs.
>>>
>>> The only way that I found is to login directly into the docker container
>>> and read the logs from /var/log/app_engine/ but every time I make some code
>>> change and I rebuild the docker image, the container I'm logged in of
>>> course gets destroyed and I need to log in again... quite a long process so.
>>>
>>> I also tried to add more parameters, like
>>>
>>> mvn -Dgcloud.log_level=debug -Dgcloud.enable_mvm_logs -X gcloud:run
>>>
>>> but still no luck.
>>>
>>> Do you guys have any suggestion?
>>>
>>> --
>>> 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 google-appengi...@googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-appengine/2b2e4858-9771-4964-acb6-c02704a9a0b3%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-appengine/2b2e4858-9771-4964-acb6-c02704a9a0b3%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Les Vogel | Cloud Developer Relations | le...@google.com | 408-676-7023
>>
>  --
> 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 google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/1e58f4c9-5cc1-4aab-b055-224124f6c976%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/1e58f4c9-5cc1-4aab-b055-224124f6c976%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Les Vogel | Cloud Developer Relations | l...@google.com | 408-676-7023

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAGB1p5iyyv%2BbX5Ymn2zq5zrQbRMbvLfnfDiC5QiKiYPR0sog1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to