Beispiel #1
0
func (c *Context) logger() log.Interface {
	if c == nil || c.R == nil {
		return nullLogger{}
	}
	if internal.InAppEngineDevServer() {
		// Return the stderr logger here, since otherwise
		// the messages are not logged.
		if c.app.Logger == nil {
			return nullLogger{}
		}
		return c.app.Logger
	}
	return &gaeLogger{c: appengine.NewContext(c.R)}
}
Beispiel #2
0
func isatty(w io.Writer) bool {
	if internal.InAppEngineDevServer() {
		return true
	}
	return false
}
Beispiel #3
0
func init() {
	if internal.InAppEngineDevServer() {
		DefaultFilename = pathutil.Relative("dev.conf")
	}
}