func (o Object) Error(key string, err error) (object Object) {
	o.enc.addKey(key)
	var s string
	if err != nil {
		s = err.Error()
	}
	o.enc.AppendString(s)
	return o
}
Error adds a error value for the given key
package log
var (
	nullBytes = []byte(`null`)
)
type Object struct {
	enc *encoder
}
func (o Object) Bool(key string, value bool) (object Object) {
	o.enc.addKey(key)
	o.enc.AppendBool(value)
	return o
}
func (o Object) Float(key string, value float64) (object Object) {
	o.enc.addKey(key)
	o.enc.AppendFloat(value)
	return o
}
func (o Object) Int(key string, value int64) (object Object) {
	o.enc.addKey(key)
	o.enc.AppendInt(value)
	return o
}
func (o Object) Uint(key string, value uint64) (object Object) {
	o.enc.addKey(key)
	o.enc.AppendUint(value)
	return o
}
func (o Object) String(key string, value string) (object Object) {
	o.enc.addKey(key)
	o.enc.AppendString(value)
	return o
}
func (o Object) Null(key string) (object Object) {
	o.enc.addKey(key)
	o.enc.AppendBytes(nullBytes)
	return o
}