~golang-logging/golang-logging/trunk

« back to all changes in this revision

Viewing changes to logger.go

  • Committer: Örjan Persson
  • Date: 2016-02-11 22:41:04 UTC
  • Revision ID: git-v1:e6cee1331aceff5b42d8a3fe6c585e30330dcf39
Rename Record.Id to Record.ID

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
// was created, an increasing id, filename and line and finally the actual
42
42
// formatted log line.
43
43
type Record struct {
44
 
        Id     uint64
 
44
        ID     uint64
45
45
        Time   time.Time
46
46
        Module string
47
47
        Level  Level
147
147
 
148
148
        // Create the logging record and pass it in to the backend
149
149
        record := &Record{
150
 
                Id:     atomic.AddUint64(&sequenceNo, 1),
 
150
                ID:     atomic.AddUint64(&sequenceNo, 1),
151
151
                Time:   timeNow(),
152
152
                Module: l.Module,
153
153
                Level:  lvl,