k

package
v0.0.0-...-bc6c5c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string, value bool) log.Field

Bool records primitive booleans

func Delay

func Delay(d time.Duration) log.Field

Delay measured in seconds

func Duration

func Duration(d time.Duration) log.Field

Duration measured in seconds

func Elapsed

func Elapsed(d time.Duration) log.Field

Elapsed time measured in seconds

func Err

func Err(err error) log.Field

Err provides an error

func Float32

func Float32(key string, value float32) log.Field

Float32 records primitive int32

func Float64

func Float64(key string, value float64) log.Field

Float64 records primitive float64

func ID

func ID(id types.Key) log.Field

ID logs general id

func Int

func Int(key string, value int) log.Field

Int logs a key and value

func Int32

func Int32(key string, value int32) log.Field

Int32 records primitive int32

func Int64

func Int64(key string, value int64) log.Field

Int64 records primitive int64

func Key

func Key(key string) log.Field

Key provides a standard key

func Method

func Method(method string) log.Field

Method provides an http method

func Name

func Name(name string) log.Field

Name provide a name field

func OrgID

func OrgID(orgID types.Key) log.Field

OrgID logs org id

func StatusCode

func StatusCode(sc int) log.Field

StatusCode provides an http status code

func String

func String(key, value string) log.Field

String logs a key and value

func Subject

func Subject(value string) log.Field

Subject references the nats subject the message was sent to or received from

func Text

func Text(value string) log.Field

Text logs a string with the key text; useful for messages which are not intended to be read except by humans

func URL

func URL(url string) log.Field

URL provides an http url

func Value

func Value(in interface{}) log.Field

Value allows the logging of arbitrary values

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL