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

Side by Side Diff: go/src/infra/monitoring/messages/alerts.go

Issue 1149313002: go: Replace Logrus with go-logging. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: typo 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Package alerts contains structs defined to implement the json format: 5 // Package alerts contains structs defined to implement the json format:
6 // https://docs.google.com/document/d/10MESGzRy9uAy3Y3-PxUcjiuF3BD3FGGmCNvCjqm3W QQ/preview 6 // https://docs.google.com/document/d/10MESGzRy9uAy3Y3-PxUcjiuF3BD3FGGmCNvCjqm3W QQ/preview
7 7
8 package messages 8 package messages
9 9
10 import ( 10 import (
11 "os" 11 "os"
12 "time" 12 "time"
13 13
14 » "github.com/Sirupsen/logrus" 14 » "infra/libs/logging"
15 ) 15 )
16 16
17 var ( 17 var (
18 googLoc *time.Location 18 googLoc *time.Location
19 » log = logrus.New() 19 » log = logging.DefaultLogger
20 ) 20 )
21 21
22 const ( 22 const (
23 // GoogleTimeZone is the timezone used by the services whose 23 // GoogleTimeZone is the timezone used by the services whose
24 // messages this package parses. 24 // messages this package parses.
25 GoogleTimeZone = "UTC" 25 GoogleTimeZone = "UTC"
26 ) 26 )
27 27
28 func init() { 28 func init() {
29 var err error 29 var err error
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 Step string 98 Step string
99 URL string 99 URL string
100 } 100 }
101 101
102 // RegressionRange identifies the bounds of the location of a regression. 102 // RegressionRange identifies the bounds of the location of a regression.
103 type RegressionRange struct { 103 type RegressionRange struct {
104 Repo string 104 Repo string
105 URL string 105 URL string
106 Revisions []string 106 Revisions []string
107 } 107 }
OLDNEW
« no previous file with comments | « go/src/infra/monitoring/dispatcher/dispatcher.go ('k') | go/src/infra/tools/cipd/apps/cipd/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698