Log Viewer for Google App Engine local development
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/gaelv
img
static
templates
.gitignore
Makefile
README.md
bindata.go
console.go
log.go
provider.go
server.go

README.md

gaelv

gaelv is a log viewer for Google App Engine local development.

screenshot

Motivation

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.

Install

go get -u github.com/addsict/gaelv/...

How to use

  1. Run your app server (dev_appserver.py) with --logs_path=<log_path> option.
dev_appserver.py app.yaml --logs_path=/tmp/log.db
  1. Run gaelv with same --logs_path option.
gaelv --logs_path=/tmp/log.db
  1. Open http://localhost:9090/ on your browser.

Console mode

If you want to see logs in the console instead of a browser, run gaelv with --console option.

gaelv --logs_path=/tmp/log.db --console

screenshot2

FAQ

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 _MIN_COMMIT_INTERVAL to 0 in the file ${SDK_ROOT_PATH}/platform/google_appengine/google/appengine/api/logservice/logservice_stub.py.
You can find your sdk root path by: gcloud info --format="value(installation.sdk_root)"

diff

--- 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,

  • GAE/Go
  • GAE/Python
  • GAE/PHP

For development this tool

Instal go-bindata

go get -u github.com/jteeuwen/go-bindata/...

Build templates and static files

make build