gaelv is a log viewer for Google App Engine local development.
This tool aims to empower your local development with following features:
- Provide a rich and powerful log viewer like Stackdriver log viewer.
- Make logs persistent and searchable.
go get -u github.com/addsict/gaelv/...
How to use
- Run your app server (
dev_appserver.py app.yaml --logs_path=/tmp/log.db
- Open http://localhost:9090/ on your browser.
If you want to see logs in the console instead of a browser, run
gaelv --logs_path=/tmp/log.db --console
The latest logs doesn't appear immediately.
Unfortunately, new logs are buffered in the app engine log service for 5 seconds.
There is no workaround for it now except modifying sdk source code, so please change the value
0 in the file
You can find your sdk root path by:
gcloud info --format="value(installation.sdk_root)"
--- a/logservice_stub.py +++ b/logservice_stub.py @@ -86,7 +86,7 @@ class LogServiceStub(apiproxy_stub.APIProxyStub): - _MIN_COMMIT_INTERVAL = 5 + _MIN_COMMIT_INTERVAL = 0
Can I use this tool for GAE/Java?
No, you can't.
This tool uses the App Engine log service, which is not supported in GAE/Java local development server.
Supported runtimes are following,
For development this tool
go get -u github.com/jteeuwen/go-bindata/...
Build templates and static files