Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: go/src/infra/libs/logging/gaelogger/gaelogger.go

Issue 1153883002: go: infra/libs/* now live in luci-go. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: move the rest too Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package gaelogger
6
7 import (
8 "golang.org/x/net/context"
9
10 "appengine"
11
12 "infra/libs/logging"
13 )
14
15 // Use adds a logging.Logger implementation to the context which logs to
16 // appengine's log handler.
17 func Use(c context.Context, gaeCtx appengine.Context) context.Context {
18 return logging.Set(c, func(context.Context) logging.Logger { return gaeC tx })
19 }
OLDNEW
« no previous file with comments | « go/src/infra/libs/funnybase/funnybase_test.go ('k') | go/src/infra/libs/logging/gaelogger/gaelogger.infra_testing » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698