Skip to content

Commit

Permalink
Add missing field methods
Browse files Browse the repository at this point in the history
  • Loading branch information
romshark committed Nov 19, 2019
1 parent 5858491 commit 804a2c7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions zerowrap/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,21 @@ func (l Log) Int(fieldName string, value int) Log {
return logFromCtx(l.ctx().Int(fieldName, value))
}

// Int8 appends a field to the logger context
func (l Log) Int8(fieldName string, value int8) Log {
return logFromCtx(l.ctx().Int8(fieldName, value))
}

// Uint16 appends a field to the logger context
func (l Log) Uint16(fieldName string, value uint16) Log {
return logFromCtx(l.ctx().Uint16(fieldName, value))
}

// Int16 appends a field to the logger context
func (l Log) Int16(fieldName string, value int16) Log {
return logFromCtx(l.ctx().Int16(fieldName, value))
}

// Uint32 appends a field to the logger context
func (l Log) Uint32(fieldName string, value uint32) Log {
return logFromCtx(l.ctx().Uint32(fieldName, value))
Expand Down

0 comments on commit 804a2c7

Please sign in to comment.