Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorInvalidToken = errors.New("Invalid token")
ErrorInvalidToken Error for tokens
Functions ¶
This section is empty.
Types ¶
type ClientOptionFunc ¶
ClientOptionFunc to set options
func SetTimestamp ¶
func SetTimestamp(ts log.Valuer) ClientOptionFunc
SetTimestamp overrides DefaultTimestampUTC
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger structure
func New ¶
func New(token string, options ...ClientOptionFunc) (*Logger, error)
New Creates a new kitz logger with DefaultTimestampUTC
l, err := kitz.New("api-key")
Click to show internal directories.
Click to hide internal directories.